blob: cf7b29335d0e1032ec0ee7b8c47db5c9ba316afe (
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
|
# drop privileges
user "_gmid"
# it's a good idea to enable chroot, but
# beware that can make CGI scripting harder
#chroot "/var/gemini"
# An example of a server block:
server "jozanofastora.xyz" {
# set the directory to serve; it's relative to the
# chroot (if enabled)
root "/usr/local/gemini"
# Set self-signed TLS cert and key. It's better to keep
# the keys outside the chroot.
#
# You should generate them manually, for example:
# openssl req -x509 -newkey rsa:4096 -nodes \
# -out /usr/local/etc/ssl/gmid/localhost.crt \
# -keyout /usr/local/etc/ssl/gmid/localhost.key \
# -subj "/CN=localhost"
cert "/usr/local/etc/letsencrypt/live/jozanofastora.xyz/cert.pem"
key "/usr/local/etc/letsencrypt/live/jozanofastora.xyz/privkey.pem"
}
|