summaryrefslogtreecommitdiff
path: root/testing/gmid/gmid.conf
blob: 6c75115ff2370685456e13f2146ad3e4c6778c14 (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
31
# set user to run daemon as
user "gmid"

# enable ipv6 support
ipv6 on

server "localhost" {
	# set directory to serve
	root "/var/gemini/localhost"

	# set self-signed TLS cert and key
	# you should generate them manually, see `gencert -h`
	cert "/etc/ssl/gmid/localhost.crt"
	key "/etc/ssl/gmid/localhost.key"

	# lang for text/gemini files
	lang "en"

	# only for locations that matches /files/*
	location "/files/*" {
		# generate directory listings
		auto index on
	}

	# only for locations that matches /repo/*
	location "/repo/*" {
		# change the index file name
		index "README.gmi"
		lang "en"
	}
}