From c43ad4bffd6889df4bfe52b1effd94b52e2da840 Mon Sep 17 00:00:00 2001 From: scoobybejesus <21372487+scoobybejesus@users.noreply.github.com> Date: Sat, 7 Aug 2021 22:50:34 -0400 Subject: [PATCH] Nginx changes for websocket --- ircradio/templates/nginx.jinja2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ircradio/templates/nginx.jinja2 b/ircradio/templates/nginx.jinja2 index 7f3e8b8..5eea65c 100644 --- a/ircradio/templates/nginx.jinja2 +++ b/ircradio/templates/nginx.jinja2 @@ -45,4 +45,12 @@ server { proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } + + location /ws { + proxy_pass http://{{ host }}:{{ port }}/ws; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $host; + } }