From 5ee0cc68b90de55e97c304d73e5c0225924bbbc8 Mon Sep 17 00:00:00 2001 From: Riley Snyder Date: Wed, 25 Oct 2023 19:37:39 +0100 Subject: [PATCH] try nginx examples from web --- infra/k8s/coder/coder.yaml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/infra/k8s/coder/coder.yaml b/infra/k8s/coder/coder.yaml index 939f9fe..a9df0e8 100644 --- a/infra/k8s/coder/coder.yaml +++ b/infra/k8s/coder/coder.yaml @@ -67,11 +67,20 @@ metadata: name: {{ .Values.app }} namespace: {{ .Values.namespace }} annotations: - nginx.ingress.kubernetes.io/configuration-snippet: | - proxy_set_header Host $host; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection upgrade; - proxy_set_header Accept-Encoding gzip; + # nginx.ingress.kubernetes.io/configuration-snippet: | + # proxy_set_header Host $host; + # proxy_set_header Upgrade $http_upgrade; + # proxy_set_header Connection upgrade; + # proxy_set_header Accept-Encoding gzip; + nginx.ingress.kubernetes.io/rewrite-target: / + nginx.org/websocket-services: {{ .Values.app }} + nginx.org/server-snippets: | + location / { + proxy_set_header Host $host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection upgrade; + proxy_set_header Accept-Encoding gzip; + } spec: ingressClassName: nginx rules: