From b4df7de1eda9221501737bc4e574064cb7073625 Mon Sep 17 00:00:00 2001 From: luckysideburn Date: Fri, 19 Apr 2019 17:55:26 -0400 Subject: [PATCH] increased TOTAL_ENV_SIZE and fixed deployment in Openshift. ENDPOINT is not needed anymore for Openshift --- nginx/KubeInvaders.templ | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 nginx/KubeInvaders.templ diff --git a/nginx/KubeInvaders.templ b/nginx/KubeInvaders.templ new file mode 100644 index 0000000..0421cb4 --- /dev/null +++ b/nginx/KubeInvaders.templ @@ -0,0 +1,28 @@ +# These variables will be replaced by temporary_hack.sh +upstream kubernetes { + server ${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}; +} + +server { + listen 8080 default_server; + listen [::]:8080 default_server; + root /var/www/html/; + index index.html; + + location / { + try_files $uri $uri/ =404; + add_header Last-Modified $date_gmt; + add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; + if_modified_since off; + expires off; + etag off; + } + + location /kube { + rewrite /kube/(.*) /$1 break; + proxy_pass https://kubernetes; + proxy_redirect off; + proxy_set_header Host $host; + } + +}