feat: add environment variable to trust the reverse proxy

This commit is contained in:
Elias Schneider
2024-09-18 23:01:50 +02:00
parent 97dc3ecfdd
commit b13a81a88c
9 changed files with 40 additions and 19 deletions

View File

@@ -0,0 +1,14 @@
:3000 {
reverse_proxy /* http://localhost:3333 {
trusted_proxies 0.0.0.0/0
}
reverse_proxy /api/* http://localhost:8080 {
trusted_proxies 0.0.0.0/0
}
log {
output file /var/log/caddy/access.log
level WARN
}
}