From 789991f880399ca6fc34163c9034a8278d1a2b0f Mon Sep 17 00:00:00 2001 From: Tanner Prestegard <tanner.prestegard@ligo.org> Date: Tue, 25 Sep 2018 10:11:48 -0500 Subject: [PATCH] New requirement for client version Now require version 2.0.0 of the client and won't allow old versions without the client header. --- config/settings/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/settings/base.py b/config/settings/base.py index 1d0c6ecd7..c5f6e7b48 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -38,10 +38,10 @@ MANAGERS = ADMINS # Client versions allowed - pip-like specifier strings, # can be multiple (comma-separated) -ALLOWED_CLIENT_VERSIONS = '>=1.29.dev1' +ALLOWED_CLIENT_VERSIONS = '>=2.0.0' # Allow requests to API without user-agent header specified # Temporary fix while we transition -ALLOW_BLANK_USER_AGENT_TO_API = True +ALLOW_BLANK_USER_AGENT_TO_API = False # Use forwarded host header for Apache -> Gunicorn reverse proxy configuration USE_X_FORWARDED_HOST = True -- GitLab