From 7818e729c78e79cf80edd3e22eda098f52fb6c45 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 24 Feb 2023 13:27:34 +0100 Subject: "document" fileserver --- readme.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 67150c8..3d4eb28 100644 --- a/readme.md +++ b/readme.md @@ -29,8 +29,15 @@ tls_key = "ssl/key.pem" # only accepts pkcs8 for now [hosts] "testdomain.local" = { backend = "127.0.0.1:3000" } "secondomain.local" = { backend = "1.2.3.4:5678" } +"static.testdomain.local" = { files = { root = "/srv/http", index = true } } ``` +The configuration can either be specify a backend to forward to or the `files` +key. In that case, static files are served from `root` and directory listings +will be generated if `index` is true (default). If a directory contains +`index.html` the listing is replace with that file. If `index.banner.html`, it's +content is inserted before the listing. + # License AGPL-3.0-only; see [COPYING](./COPYING) -- cgit v1.2.3-70-g09d2