1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 12:59:36 +02:00
This commit is contained in:
Sean Morley 2024-07-10 08:46:38 -04:00
parent e646ad6f81
commit ad90f03a45
2 changed files with 4 additions and 5 deletions

View file

@ -207,10 +207,8 @@ SWAGGER_SETTINGS = {
CORS_ORIGIN_ALLOW_ALL = True CORS_ORIGIN_ALLOW_ALL = True
CSRF_TRUSTED_ORIGINS = [ from os import getenv
'https://api.adventurelog.app',
'https://adventurelog.app',
] CSRF_TRUSTED_ORIGINS = getenv('CSRF_TRUSTED_ORIGINS', 'localhost').split(',')
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

View file

@ -35,6 +35,7 @@ services:
- DJANGO_ADMIN_PASSWORD=admin - DJANGO_ADMIN_PASSWORD=admin
- DJANGO_ADMIN_EMAIL=admin@example.com - DJANGO_ADMIN_EMAIL=admin@example.com
- PUBLIC_URL='http://127.0.0.1:81' - PUBLIC_URL='http://127.0.0.1:81'
- CSRF_TRUSTED_ORIGINS=https://api.adventurelog.app,https://adventurelog.app
- DEBUG=False - DEBUG=False
ports: ports:
- "8000:8000" - "8000:8000"