Skip to content

Commit b509802

Browse files
committed
Fix nginx regex rule
1 parent 1665f97 commit b509802

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helm/charts/playground-sandbox/templates/nginx/confgmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ data:
2727
server {
2828
listen 3000;
2929
listen 3773;
30-
server_name ~^(?<subdomain>.*)-(?<port>.+?)\.(?<namespace>.*)\.(?<domain>.+)\.(?<tld>.*)$;
30+
server_name ~^(?<subdomain>.*?)-(?<port>\d+)\.(?<namespace>[^.]+)\.(?<domain>.*)\.(?<tld>.*)$;
3131
3232
location /health {
3333
access_log off;
@@ -37,7 +37,7 @@ data:
3737
3838
location / {
3939
resolver kube-dns.kube-system.svc.cluster.local;
40-
proxy_pass http://$subdomain.{{ .Values.sandboxNamespace }}.svc.cluster.local:$port;
40+
proxy_pass $subdomain.{{ .Values.sandboxNamespace }}.svc.cluster.local:$port;
4141
proxy_redirect off;
4242
proxy_set_header Host $subdomain.$domain.$tld;
4343
proxy_set_header X-Real-IP $remote_addr;

0 commit comments

Comments
 (0)