Add example config for the Caddy HTTP server
This commit is contained in:
parent
a1fbeb91a0
commit
45f85412f5
1 changed files with 19 additions and 0 deletions
19
INSTALL.md
19
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`**:
|
||||
|
||||
|
|
Loading…
Reference in a new issue