add a bunch of servala redirect zones
This commit is contained in:
parent
290c4fb63e
commit
1347f9c72a
3 changed files with 159 additions and 2 deletions
|
@ -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=[])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue