From c640749c7c05cde43d6598f51fcde133517b25a2 Mon Sep 17 00:00:00 2001 From: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> Date: Thu, 17 Mar 2022 16:51:45 -0500 Subject: [PATCH] allow websockets to containers (#1340) * allow websockets to containers * fix format string --- backend/src/net/nginx.conf.template | 3 +++ backend/src/nginx/main-ui.conf.template | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/backend/src/net/nginx.conf.template b/backend/src/net/nginx.conf.template index cee7fe7bb..91c33052e 100644 --- a/backend/src/net/nginx.conf.template +++ b/backend/src/net/nginx.conf.template @@ -11,5 +11,8 @@ server {{ client_max_body_size 0; proxy_request_buffering off; proxy_buffering off; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; }} }} diff --git a/backend/src/nginx/main-ui.conf.template b/backend/src/nginx/main-ui.conf.template index a85e6c90e..bac5343a1 100644 --- a/backend/src/nginx/main-ui.conf.template +++ b/backend/src/nginx/main-ui.conf.template @@ -1,4 +1,8 @@ +map $http_upgrade $connection_upgrade {{ + default upgrade; + '' $http_connection; +}} server {{ listen 443 ssl default_server;