4 **gmid** - dead simple gemini server
10 \[**-c** *cert.pem*]
12 \[**-k** *key.pem*]
17 is a very simple and minimal gemini server.
18 It only supports serving static content, and strive to be as simple as
22 will strip any sequence of
26 in the requests made by clients, so it's impossible to serve content
35 are used to ensure that
37 dosen't do anything else than read files from the given directory and
38 accept network connections.
40 It should be noted that
42 is very simple in its implementation, and so it may not be appropriate
43 for serving site with lots of users.
44 After all, the code is single threaded and use a single process.
46 The options are as follows:
50 > The certificate to use, by default is
55 > The root directory to serve.
57 > won't serve any file that is outside that directory.
61 > Print the usage and exit
65 > The key for the certificate, by default is
70 To quickly getting started
72 $ # generate a cert and a key
73 $ openssl req -x509 -newkey rsa:4096 -keyout key.pem \
74 -out cert.pem -days 365 -nodes
76 $ cat <<EOF > docs/index.gmi
80 $ gmid -c cert.pem -k key.pem -d docs
82 now you can visit gemini://localhost/ with your preferred gemini client.
86 * it doesn't support virtual host: the host part of the request URL is
89 * it doesn't fork in the background or anything like that.