add a bunch of servala redirect zones
All checks were successful
Build and Deploy / build (push) Successful in 35s
Build and Deploy / deploy (push) Successful in 4s

This commit is contained in:
Tobias Brunner 2025-05-07 11:44:08 +02:00
parent 290c4fb63e
commit 1347f9c72a
No known key found for this signature in database
3 changed files with 159 additions and 2 deletions

View file

@ -42,7 +42,10 @@ SECRET_KEY = env.str("SECRET_KEY")
DEBUG = env.bool("DEBUG", default=False)
# Get all allowed hosts
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=[])
original_hosts = env.list("ALLOWED_HOSTS", default=[])
ALLOWED_HOSTS = original_hosts + [
f"www.{host}" for host in original_hosts if not host.startswith("www.")
]
# Flexible CSRF handling - support both HTTP and HTTPS as needed
HTTP_HOSTS = env.list("HTTP_HOSTS", default=[])