Add example config for the Caddy HTTP server

This commit is contained in:
kenny 2018-03-07 12:46:10 +01:00 committed by GitHub
parent a1fbeb91a0
commit 45f85412f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`**: **`config.yaml`**: