From 59052b1123019f47596cae2634f18833db03ef77 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Wed, 28 Apr 2021 15:37:23 +0200 Subject: [PATCH] fixed sockjs-node calls --- nginx/nginx.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index cfe30b2ac..240144cc3 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -69,6 +69,18 @@ server { proxy_redirect off; } + location /sockjs-node { + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Host $host; + + proxy_pass http://frontend:3000; + proxy_redirect off; + } + # access_log /var/log/nginx/access.log main; } \ No newline at end of file