Skip to content

Commit

Permalink
try nginx examples from web
Browse files Browse the repository at this point in the history
  • Loading branch information
rssnyder committed Oct 25, 2023
1 parent 2b1fd4b commit 5ee0cc6
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions infra/k8s/coder/coder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5ee0cc6

Please sign in to comment.