aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-03 10:57:31 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-03 10:57:31 -0700
commit0254eafe4a210995e0999221410e94aa2c6312e9 (patch)
tree4d274f0c638299e12af32caab6c14b3286dc522c
parent102be654418e1a4acc6ebbd7bdaf22df2a27ac54 (diff)
downloadfatcat-0254eafe4a210995e0999221410e94aa2c6312e9.tar.gz
fatcat-0254eafe4a210995e0999221410e94aa2c6312e9.zip
handle local/dev env config better
-rw-r--r--python/fatcat_web/web_config.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/python/fatcat_web/web_config.py b/python/fatcat_web/web_config.py
index 8ece91f7..9aad8998 100644
--- a/python/fatcat_web/web_config.py
+++ b/python/fatcat_web/web_config.py
@@ -44,8 +44,12 @@ class Config(object):
WTF_CSRF_CHECK_DEFAULT = True
WTF_CSRF_TIME_LIMIT = None
- # protect cookies (which include API tokens)
- if FATCAT_DOMAIN != "dev.fatcat.wiki":
+ if FATCAT_DOMAIN == "dev.fatcat.wiki":
+ # "Even more verbose" debug options
+ #SQLALCHEMY_ECHO = True
+ #DEBUG = True
+ else:
+ # protect cookies (which include API tokens)
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_SECURE = True
SESSION_COOKIE_SAMESITE = 'Lax'
@@ -66,6 +70,3 @@ class Config(object):
},
}
- # "Even more verbose" debug options
- #SQLALCHEMY_ECHO = True
- #DEBUG = True