Reverse proxy sample

This commit is contained in:
Luciano Gervasoni
2025-04-04 17:33:27 +02:00
parent 9127552bfd
commit 3e84fc4508
2 changed files with 20 additions and 13 deletions

View File

@@ -27,6 +27,10 @@ DEBUG = (os.environ.get('DJANGO_DEBUG') == "True")
ALLOWED_HOSTS = os.environ.get('DJANGO_ALLOWED_HOSTS', "*").split(",")
CSRF_TRUSTED_ORIGINS = os.environ.get('DJANGO_ALLOWED_ORIGINS', "*").split(",")
#CSRF_TRUSTED_ORIGINS = ["https://fetcher.matitos.org"]
#CSRF_ALLOWED_ORIGINS = ["https://fetcher.matitos.org"]
#CORS_ORIGINS_WHITELIST = ["https://fetcher.matitos.org"]
# Application definition