Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #152 from Janaka-Steph/bool-envs-2
Browse files Browse the repository at this point in the history
Fix bool env vars
  • Loading branch information
filopedraz authored Sep 28, 2023
2 parents bc3308c + 3f30cf3 commit 4602edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

# General
# ------------------------------------------------------------------------------
DEBUG: bool = bool(os.getenv("DEBUG", "False"))
DEBUG: bool = os.getenv("DEBUG", "False").lower() in ("true", "1")
SECRET_KEY: Secret = Secret(os.getenv("SECRET_KEY", ""))
PROJECT_NAME: str = os.getenv("PROJECT_NAME", "Prem Daemon")

# PROXY
# ------------------------------------------------------------------------------
PROXY_ENABLED: bool = bool(os.getenv("PROXY_ENABLED", "False"))
PROXY_ENABLED: bool = os.getenv("PROXY_ENABLED", "False").lower() in ("true", "1")
DNSD_URL: str = os.getenv("DNSD_URL", "http://dnsd:8080")

# APIs
Expand Down

0 comments on commit 4602edb

Please sign in to comment.