#6 add GATEWAY_ENABLE_UPLOAD environment variable

routes that modify disk are not added unless the env variable is set.
This commit is contained in:
Alok Saldanha
2019-09-23 14:48:58 -04:00
parent 876538cd52
commit d3a290a3ab
4 changed files with 15 additions and 9 deletions
+1
View File
@@ -16,6 +16,7 @@ gateway_protocol = os.environ.get("GATEWAY_PROTOCOL")
ip = os.environ.get("GATEWAY_IP")
extra_scripts = os.environ.get("GATEWAY_EXTRA_SCRIPTS")
ttl = os.environ.get("GATEWAY_TTL")
enable_upload = os.environ.get("GATEWAY_ENABLE_UPLOAD", "").lower() in ['true', '1']
env_vars = {
"CELLXGENE_LOCATION": cellxgene_location,