From b5cec5cf4c75bfeb612d23b79486c6c92031c27a Mon Sep 17 00:00:00 2001 From: Raine Date: Wed, 10 Jan 2024 01:24:38 +0100 Subject: [PATCH] fix: firezone websocket --- .../custom/nginx/conf.d/firezone.conf | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/servers/apoc/docker-compose.d/custom/nginx/conf.d/firezone.conf b/servers/apoc/docker-compose.d/custom/nginx/conf.d/firezone.conf index 3d4cb05..ceaa04f 100644 --- a/servers/apoc/docker-compose.d/custom/nginx/conf.d/firezone.conf +++ b/servers/apoc/docker-compose.d/custom/nginx/conf.d/firezone.conf @@ -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; }