diff options
author | Slack Coder <slackcoder@server.ky> | 2024-10-08 19:31:41 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2024-10-08 19:36:57 -0500 |
commit | 2954898f6551cbd2e5b0ed4dae8925d729f741a9 (patch) | |
tree | 9b66596fa7c1b1f4f376c9f974ebb349ed4286d1 /gmid/files/gmid.conf.new | |
parent | ff09d99234d42e8dba3f1f9b7de8181b6bacbdbd (diff) | |
download | slackbuilds-2954898f6551cbd2e5b0ed4dae8925d729f741a9.tar.xz |
gmid: bump v2.1.1 and update config
Diffstat (limited to 'gmid/files/gmid.conf.new')
-rw-r--r-- | gmid/files/gmid.conf.new | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/gmid/files/gmid.conf.new b/gmid/files/gmid.conf.new index 3b725ad..c725e4f 100644 --- a/gmid/files/gmid.conf.new +++ b/gmid/files/gmid.conf.new @@ -1,24 +1,30 @@ -log { - access /var/log/gmid/gmid.log -} +# Directory to isolate process. +# +# Only available when starting gmid as root. +chroot "/srv/gmid" + +# User to run daemon as. Mandatory if chroot is used. +user "gmid" # An example of a server block: -server "localhost" { +server "example.com" { listen on * port 1965 - # set the directory to serve - root "localhost" + # Path to the root directory of your capsule. + root "example.com" - # Set self-signed TLS cert and key. It's better to keep - # the keys outside the chroot. + # Set self-signed TLS cert and key. It is better to keep the keys + # outside the chroot. + # + # This key expires after 365 days, keep in mind to renew it. # - # sudo -u gmid -- \ - # openssl req -x509 \ - # -newkey rsa:4096 \ - # -nodes \ - # -out /etc/gmid/certs/localhost.crt \ - # -keyout /etc/gmid/certs/localhost.key \ - # -subj "/CN=localhost" - cert "/etc/gmid/certs/localhost.crt" - key "/etc/gmid/certs/localhost.key" + # openssl req -x509 \ + # -newkey rsa:4096 \ + # -days 365 \ + # -nodes \ + # -out /etc/ssl/gmid/example.com.pem \ + # -keyout /etc/ssl/gmid/example.com.key \ + # -subj "/CN=example.com" + cert "/etc/ssl/gmid/example.com.pem" + key "/etc/ssl/gmid/example.com.key" } |