subscribarr/settings.py aktualisiert

This commit is contained in:
2025-08-11 10:40:01 +00:00
parent 7f0f9f6eff
commit bb30afb4d0

View File

@@ -104,17 +104,19 @@ AUTH_PASSWORD_VALIDATORS = [
}, },
] ]
CSRF_TRUSTED_ORIGINS = [ # Configure CSRF trusted origins via env var for container deployments.
'https://subscribarr.local.js-devop.de', # Example: DJANGO_CSRF_TRUSTED_ORIGINS="https://subscribarr.example.com,https://app.example.org"
# Weitere vertrauenswürdige Domains können hier hinzugefügt werden CSRF_TRUSTED_ORIGINS = [o.strip() for o in os.getenv('DJANGO_CSRF_TRUSTED_ORIGINS', '').split(',') if o.strip()]
] if not CSRF_TRUSTED_ORIGINS:
# Fallback default (can be overridden by env)
CSRF_TRUSTED_ORIGINS = ['https://subscribarr.local.js-devop.de']
# Internationalization # Internationalization
# https://docs.djangoproject.com/en/5.2/topics/i18n/ # https://docs.djangoproject.com/en/5.2/topics/i18n/
LANGUAGE_CODE = 'de-de' LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'Europe/Berlin' TIME_ZONE = 'Europe/Berlin'