Skip to content

Commit

Permalink
🔧 add IS_HTTPS config
Browse files Browse the repository at this point in the history
  • Loading branch information
annashamray committed Apr 22, 2024
1 parent f237da0 commit 08b9b9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/objecttypes/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
DEBUG = config("DEBUG", default=False)

ALLOWED_HOSTS = config("ALLOWED_HOSTS", default="", split=True)
IS_HTTPS = config("IS_HTTPS", default=not DEBUG)

USE_X_FORWARDED_HOST = config("USE_X_FORWARDED_HOST", default=False)

Expand Down
1 change: 1 addition & 0 deletions src/objecttypes/conf/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

os.environ.setdefault("SECRET_KEY", "dummy")
os.environ.setdefault("ENVIRONMENT", "ci")
os.environ.setdefault("IS_HTTPS", "no")

from .base import * # noqa isort:skip

Expand Down
1 change: 1 addition & 0 deletions src/objecttypes/conf/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import warnings

os.environ.setdefault("DEBUG", "yes")
os.environ.setdefault("IS_HTTPS", "no")
os.environ.setdefault("ALLOWED_HOSTS", "*")
os.environ.setdefault(
"SECRET_KEY", "fgv=c0hz&tl*8*3m3893@m+1pstrvidc9e^5@fpspmg%cy$15d"
Expand Down

0 comments on commit 08b9b9b

Please sign in to comment.