Lines 3-15
user "_gmid"
Link Here
|
3 |
|
3 |
|
4 |
# it's a good idea to enable chroot, but |
4 |
# it's a good idea to enable chroot, but |
5 |
# beware that can make CGI scripting harder |
5 |
# beware that can make CGI scripting harder |
6 |
# |
6 |
chroot "/var/gemini" |
7 |
#chroot "/var/gemini" |
|
|
8 |
|
7 |
|
9 |
# An example of a server block: |
8 |
# An example of a server block: |
10 |
# |
9 |
server "localhost" { |
11 |
#server "localhost" { |
10 |
# set the directory to serve; it's relative to the |
12 |
# root "/var/gemini/localhost" |
11 |
# chroot (if enabled) |
13 |
# cert "/usr/local/etc/ssl/gmid/gmid.crt" |
12 |
root "/localhost" |
14 |
# key "/usr/local/etc/ssl/gmid/gmid.key" |
13 |
|
15 |
#} |
14 |
# Set self-signed TLS cert and key. It's better to keep |
|
|
15 |
# the keys outside the chroot. |
16 |
# |
17 |
# You should generate them manually, for example: |
18 |
# openssl req -x509 -newkey rsa:4096 -nodes \ |
19 |
# -out /usr/local/etc/ssl/gmid/localhost.crt \ |
20 |
# -keyout /usr/local/etc/ssl/gmid/localhost.key \ |
21 |
# -subj "/CN=localhost" |
22 |
cert "/usr/local/etc/ssl/gmid/localhost.crt" |
23 |
key "/usr/local/etc/ssl/gmid/localhost.key" |
24 |
} |