from .base import * # noqa DEBUG = False # Behind Caddy: trust the forwarded proto header so Django knows it's HTTPS. # SECURE_SSL_REDIRECT is intentionally off — Caddy handles HTTPS redirects # before the request reaches Django; enabling it here causes redirect loops. SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") USE_X_FORWARDED_HOST = True SECURE_SSL_REDIRECT = False SESSION_COOKIE_SECURE = True CSRF_COOKIE_SECURE = True CSRF_TRUSTED_ORIGINS = [ "https://nohypeai.net", "https://www.nohypeai.net", ]