2020-10-29 22:58:12 +01: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 01:17:23 +01: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
|
2020-10-30 21:30:09 +01:00
|
|
|
`proxy` URL is provided requests are forwarded to the Gemini server at that URL.
|
|
|
|
|
|
|
|
Paths are matched in the order they are provided.
|
2020-10-30 01:17:23 +01:00
|
|
|
|
|
|
|
When accessing a directory `index.gemini` or `index.gmi` is served.
|
|
|
|
|
2020-10-29 21:35:48 +01:00
|
|
|
# config.yaml
|
|
|
|
|
|
|
|
```yaml
|
2020-10-30 21:30:09 +01:00
|
|
|
# Address to listen on
|
|
|
|
listen: 0.0.0.0:1965
|
2020-10-30 19:19:16 +01:00
|
|
|
|
2020-10-30 21:30:09 +01:00
|
|
|
# TLS certificates
|
|
|
|
certificates:
|
2020-10-29 21:35:48 +01:00
|
|
|
-
|
2020-10-30 21:30:09 +01:00
|
|
|
cert: /home/gemini.rocks/data/cert.crt
|
|
|
|
key: /home/gemini.rocks/data/cert.key
|
|
|
|
|
|
|
|
# Hosts and paths to serve
|
|
|
|
hosts:
|
2020-10-30 19:19:16 +01:00
|
|
|
-
|
2020-10-30 21:30:09 +01:00
|
|
|
name: gemini.rocks
|
|
|
|
paths:
|
|
|
|
-
|
|
|
|
path: /sites
|
|
|
|
root: /home/gemini.rocks/data/sites
|
|
|
|
-
|
|
|
|
path: ^/(help|info)$
|
|
|
|
root: /home/gemini.rocks/data/help
|
|
|
|
-
|
|
|
|
path: ^/proxy-example$
|
|
|
|
proxy: gemini://localhost:1966
|
|
|
|
-
|
|
|
|
path: ^/cmd-example$
|
|
|
|
command: uname -a
|
|
|
|
-
|
|
|
|
path: /
|
|
|
|
root: /home/gemini.rocks/data/home
|
2020-10-29 21:35:48 +01:00
|
|
|
-
|
2020-10-30 21:30:09 +01:00
|
|
|
name: twins.rocketnine.space
|
|
|
|
paths:
|
|
|
|
-
|
|
|
|
path: /sites
|
|
|
|
root: /home/twins/data/sites
|
|
|
|
-
|
|
|
|
path: /
|
|
|
|
root: /home/twins/data/home
|
2020-10-29 21:35:48 +01:00
|
|
|
```
|