Skip to content

Commit

Permalink
make tailscale websocket compatible with cloudflare tunnel (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: 0x7fffff92 <0x7fffff92@example.com>
  • Loading branch information
0x7fffff92 and 0x7fffff92 authored May 8, 2024
1 parent 09979c9 commit 6e9faa3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ spec:
fieldRef:
fieldPath: status.podIP
- name: frontend
image: nginx:stable-alpine3.17-slim
image: jboesl/docker-nginx-headers-more:latest
imagePullPolicy: IfNotPresent
volumeMounts:
- name: nginx-config
Expand Down Expand Up @@ -469,8 +469,9 @@ data:
proxy_pass http://headscale-server-svc:8080;
proxy_method POST;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Upgrade 'tailscale-control-protocol';
proxy_set_header Connection '$connection_upgrade';
more_set_headers 'Upgrade: $http_upgrade';
}
location / {
proxy_pass http://headscale-server-svc:8080;
Expand Down

0 comments on commit 6e9faa3

Please sign in to comment.