html5 bundle

This commit is contained in:
Eugenio Marzo
2020-12-26 22:31:32 +01:00
parent e51aa4ea15
commit 21da87021d
4 changed files with 8 additions and 12 deletions

View File

@@ -2,7 +2,7 @@ server {
listen 8080 default_server;
root /var/www/html/;
index index.html;
location / {
try_files $uri $uri/ =404;
add_header Last-Modified $date_gmt;
@@ -13,15 +13,13 @@ server {
}
location /kube {
add_header Access-Control-Allow-Origin *;
rewrite ^/kube(.*)$ /api$1 break;
proxy_pass ${ENDPOINT};
proxy_pass https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS};
}
location /kube/api {
add_header Access-Control-Allow-Origin *;
rewrite ^/kube/api(.*)$ /api$1 break;
proxy_pass ${ENDPOINT};
proxy_pass https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS};
}
}
}

View File

@@ -1,7 +1,5 @@
server {
listen 8080 default_server;
listen 6443;
root /var/www/html/;
index index.html;
@@ -15,13 +13,13 @@ server {
}
location /kube {
rewrite ^/kube(.*)$ /api$1 break;
proxy_pass ${ENDPOINT};
rewrite ^/kube(.*)$ /api$1 break;
proxy_pass ${ENDPOINT};
}
location /kube/api {
rewrite ^/kube/api(.*)$ /api$1 break;
proxy_pass ${ENDPOINT};
rewrite ^/kube/api(.*)$ /api$1 break;
proxy_pass ${ENDPOINT};
}
}