configure reverse proxy header for proper TLS

This commit is contained in:
Tobias Brunner 2025-03-28 10:50:07 +01:00
parent ddd1cd70ad
commit 05742d9f1c
Signed by: tobru
SSH key fingerprint: SHA256:kOXg1R6c11XW3/Pt9dbLdQvOJGFAy+B2K6v6PtRWBGQ
2 changed files with 8 additions and 1 deletions

View file

@ -42,7 +42,10 @@
# Proxy all other requests to Gunicorn
handle {
reverse_proxy unix//app/run/gunicorn.sock
reverse_proxy unix//app/run/gunicorn.sock {
header_up X-Forwarded-Proto https
header_up X-Forwarded-Host {host}
}
}
# Basic compression for better performance