mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 04:49:37 +02:00
docker
This commit is contained in:
parent
e646ad6f81
commit
ad90f03a45
2 changed files with 4 additions and 5 deletions
|
@ -207,10 +207,8 @@ SWAGGER_SETTINGS = {
|
|||
CORS_ORIGIN_ALLOW_ALL = True
|
||||
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
'https://api.adventurelog.app',
|
||||
'https://adventurelog.app',
|
||||
from os import getenv
|
||||
|
||||
]
|
||||
CSRF_TRUSTED_ORIGINS = getenv('CSRF_TRUSTED_ORIGINS', 'localhost').split(',')
|
||||
|
||||
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
|
||||
|
|
|
@ -35,6 +35,7 @@ services:
|
|||
- DJANGO_ADMIN_PASSWORD=admin
|
||||
- DJANGO_ADMIN_EMAIL=admin@example.com
|
||||
- PUBLIC_URL='http://127.0.0.1:81'
|
||||
- CSRF_TRUSTED_ORIGINS=https://api.adventurelog.app,https://adventurelog.app
|
||||
- DEBUG=False
|
||||
ports:
|
||||
- "8000:8000"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue