freedomofpress / securethenews

An automated scanner and web dashboard for tracking TLS deployment across news organizations
https://securethe.news
GNU Affero General Public License v3.0
102 stars 25 forks source link

Deployment: permit debug=False #38

Closed conorsch closed 7 years ago

conorsch commented 8 years ago

Mind-bendingly, the prod deployment logic currently seems to required that debug=True. This must be fixed prior to production roll-out, but we're leaving debug=True in place during staging.

See #37 for a bit of context.

conorsch commented 7 years ago

Pretty sure this is caused by lack of ALLOWED_HOSTS in settings/production.py. Testing a few configs to confirm.

conorsch commented 7 years ago

Turns out we need 127.0.0.1 explicitly allowed in the hosts list to support the nginx reverse proxy.