Skip to content

Commit

Permalink
Merge pull request #179 from unt-libraries/secure-proxy-ssl-header
Browse files Browse the repository at this point in the history
Add SECURE_PROXY_SSL_HEADER setting
  • Loading branch information
ldko authored Apr 5, 2024
2 parents a8cd4d8 + 9ba0898 commit ea6a625
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 ea6a625

Please sign in to comment.