twins/CONFIGURATION.md

471 B

Paths may be defined as fixed strings or regular expressions (starting with ^).

Fixed string paths will match with and without a trailing slash.

config.yaml

# Path to certificate and private key
cert: /home/twins/data/certfile.crt
key: /home/twins/data/keyfile.key

# Paths to serve
serve:
  -
    path: /sites
    root: /home/twins/data/sites
  -
    path: ^/(help|info)$
    root: /home/twins/data/help
  -
    path: /
    root: /home/twins/data/home