Add nginx proxy location
@@ -24,6 +24,16 @@ server {
include /etc/nginx/uwsgi_params;
}
+ location ~ /proxy/(.*) {
+ resolver kube-dns.kube-system.svc.cluster.local valid=5s;
+ proxy_pass http://$1;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+ proxy_set_header Origin "";
+ internal;
+ }
+
location /repos/ {
root /repos;
expires 0;
