Add SYNCSERVER_FORCE_WSGI_ENVIRON to list of configuration options that can be set via environment variables (#100); r=rfk

This commit is contained in:
Mike Sager 2017-11-14 13:03:38 -08:00 committed by Ryan Kelly
parent 3d2d2820a7
commit 095701c0cf
2 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,7 @@ environmet variables, like this::
-e SYNCSERVER_SECRET=5up3rS3kr1t \ -e SYNCSERVER_SECRET=5up3rS3kr1t \
-e SYNCSERVER_SQLURI=sqlite:////tmp/syncserver.db \ -e SYNCSERVER_SQLURI=sqlite:////tmp/syncserver.db \
-e SYNCSERVER_BATCH_UPLOAD_ENABLED=true \ -e SYNCSERVER_BATCH_UPLOAD_ENABLED=true \
-e SYNCSERVER_FORCE_WSGI_ENVIRON=false \
# Run the container we just build \ # Run the container we just build \
syncserver:latest \ syncserver:latest \
# Start gunicorn on the desired localhost port \ # Start gunicorn on the desired localhost port \

View File

@ -143,6 +143,9 @@ def import_settings_from_environment_variables(settings, environ=None):
("SYNCSERVER_ALLOW_NEW_USERS", ("SYNCSERVER_ALLOW_NEW_USERS",
"syncserver.allow_new_users", "syncserver.allow_new_users",
str_to_bool), str_to_bool),
("SYNCSERVER_FORCE_WSGI_ENVIRON",
"syncserver.force_wsgi_environ",
str_to_bool),
("SYNCSERVER_BATCH_UPLOAD_ENABLED", ("SYNCSERVER_BATCH_UPLOAD_ENABLED",
"storage.batch_upload_enabled", "storage.batch_upload_enabled",
str_to_bool), str_to_bool),