fix: ssl_enabled flag consition fails due to unintentional space after in env

This commit is contained in:
ramvignesh-b
2026-04-25 23:15:44 +05:30
parent fca23c4fc8
commit f352c298e7
+1 -1
View File
@@ -25,7 +25,7 @@ env_file = os.environ.get("PIKU_ENV_FILE", os.path.join(BASE_DIR.parent, ".env")
if os.path.exists(env_file): if os.path.exists(env_file):
environ.Env.read_env(env_file, overwrite=False) environ.Env.read_env(env_file, overwrite=False)
SSL_ENABLED = env("SSL_ENABLED") == "true" SSL_ENABLED = env("SSL_ENABLED", default="false").strip() == "true"
URI_SCHEME = "https://" if SSL_ENABLED else "http://" URI_SCHEME = "https://" if SSL_ENABLED else "http://"
FRONTEND_URLS = [] FRONTEND_URLS = []