2020-10-29 21:58:12 +00:00
|
|
|
Paths may be defined as fixed strings or regular expressions (starting with `^`).
|
|
|
|
|
|
|
|
Fixed string paths will match with and without a trailing slash.
|
|
|
|
|
2020-10-30 00:17:23 +00:00
|
|
|
Serve entries have either a `root` path or `proxy` URL. When a `root` path is
|
|
|
|
provided static files and directories are served from that location. When a
|
|
|
|
`proxy` URL is provided requests are forwarded to the Gemini server at that URL.
|
|
|
|
|
|
|
|
When accessing a directory `index.gemini` or `index.gmi` is served.
|
|
|
|
|
2020-10-29 20:35:48 +00:00
|
|
|
# config.yaml
|
|
|
|
|
|
|
|
```yaml
|
2020-10-30 18:19:16 +00:00
|
|
|
# Hostname and port to listen for connections on
|
|
|
|
hostname: gemini.rocks
|
|
|
|
port: 1965
|
|
|
|
|
2020-10-29 20:35:48 +00:00
|
|
|
# Path to certificate and private key
|
|
|
|
cert: /home/twins/data/certfile.crt
|
|
|
|
key: /home/twins/data/keyfile.key
|
|
|
|
|
2020-10-30 18:19:16 +00:00
|
|
|
|
2020-10-30 00:17:23 +00:00
|
|
|
# Server paths
|
2020-10-29 20:35:48 +00:00
|
|
|
serve:
|
|
|
|
-
|
2020-10-29 21:58:12 +00:00
|
|
|
path: /sites
|
2020-10-29 20:35:48 +00:00
|
|
|
root: /home/twins/data/sites
|
|
|
|
-
|
2020-10-29 21:58:12 +00:00
|
|
|
path: ^/(help|info)$
|
2020-10-29 20:35:48 +00:00
|
|
|
root: /home/twins/data/help
|
2020-10-30 00:17:23 +00:00
|
|
|
-
|
|
|
|
path: ^/proxy-example$
|
2020-10-30 18:19:16 +00:00
|
|
|
proxy: gemini://localhost:1966
|
|
|
|
-
|
|
|
|
path: ^/cmd-example$
|
|
|
|
command: uname -a
|
2020-10-29 20:35:48 +00:00
|
|
|
-
|
2020-10-29 21:58:12 +00:00
|
|
|
path: /
|
2020-10-29 20:35:48 +00:00
|
|
|
root: /home/twins/data/home
|
|
|
|
```
|