Add support for X-Forwarded-Host

This commit is contained in:
Raphael Michel
2023-02-24 10:28:22 +01:00
parent 79c7b53efa
commit 6a8ebcca1a
2 changed files with 7 additions and 0 deletions

View File

@@ -178,6 +178,8 @@ if SITE_URL.endswith('/'):
CSRF_TRUSTED_ORIGINS = [urlparse(SITE_URL).hostname]
TRUST_X_FORWARDED_FOR = config.get('pretix', 'trust_x_forwarded_for', fallback=False)
USE_X_FORWARDED_HOST = config.get('pretix', 'trust_x_forwarded_host', fallback=False)
REQUEST_ID_HEADER = config.get('pretix', 'request_id_header', fallback=False)