aboutsummaryrefslogtreecommitdiff
path: root/gmid/files/gmid.conf.new
blob: c725e4f69b691af59e84e728cc2fd1f4e3025244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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 "example.com" {
	listen on * port 1965

	# Path to the root directory of your capsule.
	root "example.com"

        # 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.
        #
        #  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"
}