diff --git a/app/core/config.py b/app/core/config.py index 358aa2b..d7cd5a2 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -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