Skip to content

Commit

Permalink
Added nginx conf
Browse files Browse the repository at this point in the history
  • Loading branch information
shayanaijaz committed Nov 6, 2023
1 parent aa53b6a commit 9388172
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions server/conf/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
proxy_set_header X-Forwarded-Proto https;

# ** NOTE: Uncomment these lines below to configure a uwsgi server instead of http server,
# ** matching deployed configurations. You must also edit docker-compose-dev.all.debug.yml.
Expand Down
1 change: 0 additions & 1 deletion server/portal/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SAMESITE = 'Strict'

CSRF_TRUSTED_ORIGINS = ['https://cep.test']
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
ALLOWED_HOSTS = ['*']

Expand Down

0 comments on commit 9388172

Please sign in to comment.