Skip to content

Commit

Permalink
Update production.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dalonsoa authored Feb 22, 2024
1 parent 2369b7a commit 6fde982
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion djangomain/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
from .settings import * # noqa: F401, F403

DEBUG = False
ALLOWED_HOSTS = ["172.31.14.31"]
ALLOWED_HOSTS = os.environ["ALLOWED_HOSTS"].split(",")
SECURE_BROWSER_XSS_FILTER = True
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
SECURE_HSTS_SECONDS = 15552000
SECRET_KEY = os.environ["SECRET_KEY"]
DATABASES["default"]["PASSWORD"] = os.environ["POSTGRES_PASSWORD"] # noqa: F405

0 comments on commit 6fde982

Please sign in to comment.