HTTP -> HTTPS upgrade redirects for the staging sites.

There may be a cleaner way to configure this with Kubernetes. For now,
we expose port 80 on the load balancers and let NGINX redirect that
traffic to the HTTPS version of the site.
This commit is contained in:
dandds
2019-08-02 15:30:37 -04:00
parent e5c360452c
commit 27a0569a7e
4 changed files with 44 additions and 0 deletions

View File

@@ -6,6 +6,16 @@ metadata:
namespace: atat
data:
nginx-config: |-
server {
listen 8342;
server_name azure.atat.code.mil;
return 301 https://$host$request_uri;
}
server {
listen 8343;
server_name auth-azure.atat.code.mil;
return 301 https://$host$request_uri;
}
server {
server_name azure.atat.code.mil;
# access_log /var/log/nginx/access.log json;