dev/accesslog #1

Merged
lovinervy merged 4 commits from dev/accesslog into main 2026-01-04 12:17:26 +05:00
Showing only changes of commit 87b9eeb69c - Show all commits

View File

@@ -27,7 +27,7 @@ SECRET_KEY = os.getenv("SECRET_KEY", "")
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.getenv("DJANGO_DEBUG", "False") == "True" DEBUG = os.getenv("DJANGO_DEBUG", "False") == "True"
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "").split(",") ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "").split(",") if not DEBUG else ["*"]
if not DEBUG: if not DEBUG:
USE_X_FORWARDED_HOST = True USE_X_FORWARDED_HOST = True