From 45f85412f53ae081e8da58e7abd2c1401f3dc343 Mon Sep 17 00:00:00 2001 From: kenny <0@kenny.cat> Date: Wed, 7 Mar 2018 12:46:10 +0100 Subject: [PATCH] Add example config for the Caddy HTTP server --- INSTALL.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index 5e606c6a..faf9780a 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -173,6 +173,25 @@ server { } } ``` +**Caddy configuration**: +``` +*:80 { + root /srv/www/booru/client/public + gzip + log / /var/log/szurubooru.access.log + errors /var/log/szurubooru.error.log + + proxy /api http://127.0.0.1:6666 { + without /api + transparent + } + + rewrite { + if {uri} not_starts_with /api + to {uri} / + } +} +``` **`config.yaml`**: