Skip to content

Commit

Permalink
Add SECURE_PROXY_SSL_HEADER setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ldko committed Apr 5, 2024
1 parent a8cd4d8 commit 9ba0898
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions coda/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,4 @@ def get_secret(setting, secrets=secrets):
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware']

DATA_UPLOAD_MAX_NUMBER_FIELDS = get_secret('UPLOAD_MAX')
SECURE_PROXY_SSL_HEADER = get_secret('SECURE_PROXY_SSL_HEADER')
3 changes: 2 additions & 1 deletion docker_secrets.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"STATIC_URL": "/static/",
"DEBUG": true,
"TEST_SITE": true,
"UPLOAD_MAX": 1000
"UPLOAD_MAX": 1000,
"SECURE_PROXY_SSL_HEADER": null
}
3 changes: 2 additions & 1 deletion secrets.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"STATIC_URL": "",
"DEBUG": "",
"TEST_SITE": "",
"UPLOAD_MAX": ""
"UPLOAD_MAX": "",
"SECURE_PROXY_SSL_HEADER": null
}

0 comments on commit 9ba0898

Please sign in to comment.