aboutsummaryrefslogtreecommitdiff
path: root/sample.conf
blob: 0c3b649b1ae4609c0e5a554aa5fec914b7d94c8d (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
32
33
34
35
36
37
38
39
40
41
42
ipv6 on         # enable ipv6

# decomment to allow only TLSv1.3
#protocols "tlsv1.3"

# add the mapping for the extension rtf to the MIME application/rtf
mime "application/rtf" "rtf"

# server block example
server "example.com" {
	cert "/path/to/cert.pem"
	key  "/path/to/key.pem"
	root "/var/gemini/example.com"
}

server "it.example.com" {
	cert "/path/to/cert.pem"
	key  "/path/to/key.pem"
	root "/var/gemini/example.com"

	# enable CGI scripts in /cgi-bin/
	cgi  "/cgi-bin/"

	# optional
	lang "it"
}

# a server block with a location
server "foo.com" {
	cert "..."
	key  "..."
	root "..."

	location "/it/" {
		lang "it"
	}

	location "/files" {
		lang "en"
		auto index on
	}
}