aboutsummaryrefslogtreecommitdiff
path: root/gmid/files/gmid.conf.new
blob: 3b725ad0fd6e2aefb707d700ca86f22a9bb290d2 (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
log {
  access /var/log/gmid/gmid.log
}

# An example of a server block:
server "localhost" {
	listen on * port 1965

	# set the directory to serve
	root "localhost"

	# Set self-signed TLS cert and key.  It's better to keep
	# the keys outside the chroot.
        #
        # 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"
}