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-29 21:35:48 +01:00
|
|
|
# config.yaml
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
# Path to certificate and private key
|
|
|
|
cert: /home/twins/data/certfile.crt
|
|
|
|
key: /home/twins/data/keyfile.key
|
|
|
|
|
|
|
|
# Paths to serve
|
|
|
|
serve:
|
|
|
|
-
|
2020-10-29 22:58:12 +01:00
|
|
|
path: /sites
|
2020-10-29 21:35:48 +01:00
|
|
|
root: /home/twins/data/sites
|
|
|
|
-
|
2020-10-29 22:58:12 +01:00
|
|
|
path: ^/(help|info)$
|
2020-10-29 21:35:48 +01:00
|
|
|
root: /home/twins/data/help
|
|
|
|
-
|
2020-10-29 22:58:12 +01:00
|
|
|
path: /
|
2020-10-29 21:35:48 +01:00
|
|
|
root: /home/twins/data/home
|
|
|
|
```
|