mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
fix: ssl_enabled flag consition fails due to unintentional space after in env
This commit is contained in:
@@ -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 = []
|
||||||
|
|||||||
Reference in New Issue
Block a user