fix: firezone websocket

This commit is contained in:
Strix 2024-01-10 01:24:38 +01:00
parent 23813ac048
commit b5cec5cf4c
No known key found for this signature in database
GPG key ID: 5F35B3B8537287A7

View file

@ -2,12 +2,20 @@ server {
listen 80;
server_name fz.ixvd.net;
location /live/websocket {
proxy_pass http://firezone:13000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
}
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $host;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_pass http://firezone:13000;
client_max_body_size 0;
}