Skip to content

Commit

Permalink
Condition PROD-specific env vars in settings so that DEBUG is basical…
Browse files Browse the repository at this point in the history
…ly "dev" mode
  • Loading branch information
nucleogenesis committed Dec 10, 2024
1 parent bb81e89 commit 74039d4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions kolibri_instant_schools_plugin/instant_schools_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
('pt-br', 'Português'),
]

USE_X_FORWARDED_HOST = True
USE_X_FORWARDED_PORT = True
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
ALLOW_CERTIFICATE_PUSHING = True

USE_X_FORWARDED_HOST = (not DEBUG)
USE_X_FORWARDED_PORT = (not DEBUG)
CSRF_COOKIE_SECURE = (not DEBUG)
SESSION_COOKIE_SECURE = (not DEBUG)
ALLOW_CERTIFICATE_PUSHING = (not DEBUG)

0 comments on commit 74039d4

Please sign in to comment.