diff --git a/docker-compose.yml b/docker-compose.yml index 8ad3a5c..b084d4c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -66,7 +66,7 @@ services: user: ${DOCKER_USER:-1000} image: people:production environment: - - DJANGO_CONFIGURATION=ContinuousIntegration + - DJANGO_CONFIGURATION=Demo env_file: - env.d/development/common - env.d/development/postgresql @@ -81,7 +81,7 @@ services: image: people:production command: ["celery", "-A", "people.celery_app", "worker", "-l", "INFO"] environment: - - DJANGO_CONFIGURATION=ContinuousIntegration + - DJANGO_CONFIGURATION=Demo env_file: - env.d/development/common - env.d/development/postgresql diff --git a/docker/files/etc/nginx/conf.d/default.conf b/docker/files/etc/nginx/conf.d/default.conf index a90590d..656bb28 100644 --- a/docker/files/etc/nginx/conf.d/default.conf +++ b/docker/files/etc/nginx/conf.d/default.conf @@ -8,12 +8,12 @@ server { alias /data/media; } - # location / { - # proxy_pass http://app:8000; - # proxy_set_header Host $host; - # proxy_set_header X-Real-IP $remote_addr; - # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - # } + location / { + proxy_pass http://app:8000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } } server { diff --git a/src/backend/people/settings.py b/src/backend/people/settings.py index 3b1155d..2f5e19a 100755 --- a/src/backend/people/settings.py +++ b/src/backend/people/settings.py @@ -522,3 +522,22 @@ class PreProduction(Production): nota bene: it should inherit from the Production environment. """ + + +class Demo(Production): + """ + Demonstration environment settings + + nota bene: it should inherit from the Production environment. + """ + + CSRF_TRUSTED_ORIGINS = ["http://localhost:8082"] + + STORAGES = { + "default": { + "BACKEND": "django.core.files.storage.FileSystemStorage", + }, + "staticfiles": { + "BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage", + }, + }