From ae2c6b01ffb5dd8b6156ba577e07b083e6f52b36 Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Wed, 8 Aug 2018 09:58:25 -0400 Subject: [PATCH] Enable basic auth for /login-dev --- deploy/kubernetes/atst-nginx-configmap.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy/kubernetes/atst-nginx-configmap.yml b/deploy/kubernetes/atst-nginx-configmap.yml index d210d7c3..b30ff73d 100644 --- a/deploy/kubernetes/atst-nginx-configmap.yml +++ b/deploy/kubernetes/atst-nginx-configmap.yml @@ -15,9 +15,9 @@ data: #if ($http_x_forwarded_proto != 'https') { # return 301 https://$host$request_uri; #} - #location /login-dev { - # try_files $uri @appbasicauth; - #} + location /login-dev { + try_files $uri @appbasicauth; + } location / { try_files $uri @app; } @@ -28,8 +28,8 @@ data: location @appbasicauth { include uwsgi_params; uwsgi_pass unix:///var/run/uwsgi/uwsgi.socket; - #auth_basic "Developer Access"; - #auth_basic_user_file /etc/nginx/.htpasswd; + auth_basic "Developer Access"; + auth_basic_user_file /etc/nginx/.htpasswd; } } server {