aboutsummaryrefslogtreecommitdiff
path: root/net/gmid/files/gmid.conf.sample
blob: 8ce5a0ec3823a03e5743983534fce94a9e0ca72c (plain) (blame)
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
# drop privileges
user "_gmid"

# it's a good idea to enable chroot
chroot "/var/gemini"

# An example of a server block:
server "localhost" {
	listen on * port 1965

	# set the directory to serve; it's relative to the
	# chroot (if enabled)
	root "/localhost"

	# 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/ssl/gmid/localhost.crt"
	key  "/usr/local/etc/ssl/gmid/localhost.key"
}