Blame


1 6214c127 2021-01-15 op ipv6 on # enable ipv6
2 6214c127 2021-01-15 op daemon on # enable daemon mode
3 6214c127 2021-01-15 op
4 5bc3c98e 2021-01-15 op # decomment to allow only TLSv1.3
5 5bc3c98e 2021-01-15 op #protocols "tlsv1.3"
6 5bc3c98e 2021-01-15 op
7 982069a1 2021-01-18 op # add the mapping for the extension rtf to the MIME application/rtf
8 982069a1 2021-01-18 op mime "application/rtf" "rtf"
9 982069a1 2021-01-18 op
10 6214c127 2021-01-15 op # server block example
11 6214c127 2021-01-15 op server "example.com" {
12 6214c127 2021-01-15 op cert "/path/to/cert.pem"
13 6214c127 2021-01-15 op key "/path/to/key.pem"
14 6214c127 2021-01-15 op root "/var/gemini/example.com"
15 6214c127 2021-01-15 op }
16 6214c127 2021-01-15 op
17 6214c127 2021-01-15 op server "it.example.com" {
18 6214c127 2021-01-15 op cert "/path/to/cert.pem"
19 6214c127 2021-01-15 op key "/path/to/key.pem"
20 6214c127 2021-01-15 op root "/var/gemini/example.com"
21 05c23a54 2021-01-19 op
22 252908e6 2021-01-24 op # enable CGI scripts in /cgi-bin/
23 6214c127 2021-01-15 op cgi "/cgi-bin/"
24 05c23a54 2021-01-19 op
25 252908e6 2021-01-24 op # optional
26 252908e6 2021-01-24 op lang "it"
27 6214c127 2021-01-15 op }
28 252908e6 2021-01-24 op
29 252908e6 2021-01-24 op # a server block with a location
30 252908e6 2021-01-24 op server "foo.com" {
31 252908e6 2021-01-24 op cert "..."
32 252908e6 2021-01-24 op key "..."
33 252908e6 2021-01-24 op root "..."
34 252908e6 2021-01-24 op
35 252908e6 2021-01-24 op location "/it/" {
36 252908e6 2021-01-24 op lang "it"
37 252908e6 2021-01-24 op }
38 252908e6 2021-01-24 op
39 252908e6 2021-01-24 op location "/files" {
40 252908e6 2021-01-24 op lang "en"
41 252908e6 2021-01-24 op auto index on
42 252908e6 2021-01-24 op }
43 252908e6 2021-01-24 op }