From 05e438c7b8efb183c5a2e06a8051f2ea960ec9c8 Mon Sep 17 00:00:00 2001 From: Adrien Audebert Date: Tue, 17 Sep 2024 14:12:50 +0200 Subject: [PATCH] fix wss --- config/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/nginx.conf b/config/nginx.conf index 69b2600..f4a2e02 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -21,6 +21,12 @@ server { # Proxy normal HTTP requests to Django location / { proxy_pass http://backend:8080/; + + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_cache_bypass $http_upgrade; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;