mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-04-06 10:26:52 +00:00
increased TOTAL_ENV_SIZE and fixed deployment in Openshift. ENDPOINT is not needed anymore for Openshift
This commit is contained in:
28
nginx/KubeInvaders.templ
Normal file
28
nginx/KubeInvaders.templ
Normal file
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user