From 51f7afd5b0fd3ad10389652f1aadf16677c9aa84 Mon Sep 17 00:00:00 2001 From: dandds Date: Tue, 7 Jan 2020 06:12:56 -0500 Subject: [PATCH] Update NGINX config to use supplied domains. I left the domains hard-coded for the redirects in our NGINX config, which was breaking authentication for versions of the site that don't use that domain. This updates the config to use the domains supplied via environment variable. --- deploy/azure/atst-nginx-configmap.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/azure/atst-nginx-configmap.yml b/deploy/azure/atst-nginx-configmap.yml index 5f51c7d6..c79164f5 100644 --- a/deploy/azure/atst-nginx-configmap.yml +++ b/deploy/azure/atst-nginx-configmap.yml @@ -45,7 +45,7 @@ data: include /etc/nginx/snippets/ssl.conf; location /login-redirect { - return 301 https://auth-azure.atat.code.mil$request_uri; + return 301 https://${AUTH_DOMAIN}$request_uri; } location /login-dev { try_files $uri @appbasicauth; @@ -82,7 +82,7 @@ data: include /etc/nginx/snippets/ssl.conf; location / { - return 301 https://azure.atat.code.mil$request_uri; + return 301 https://${MAIN_DOMAIN}$request_uri; } location /login-redirect { try_files $uri @app;