From b15357e42953541800f754eaf4659d75185f25fc Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 3 Aug 2016 13:48:26 +0200 Subject: allow nginx to websocket --- bragi.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bragi.nix b/bragi.nix index a464166c..e819aa3c 100644 --- a/bragi.nix +++ b/bragi.nix @@ -375,6 +375,9 @@ in rec { location /thermoprint/api/ { proxy_pass http://localhost:8080/; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; } location /thermoprint/ { -- cgit v1.2.3