From e5e55bbc85c706eadd46883c0ea45f90c6dcdb85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Niemier?= <~@hauleth.dev> Date: Wed, 22 Apr 2026 19:56:25 +0200 Subject: [PATCH] Configure WebSocket proxying for Knot --- modules/git.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/git.nix b/modules/git.nix index 1688d03..079a2e3 100644 --- a/modules/git.nix +++ b/modules/git.nix @@ -51,6 +51,12 @@ in forceSSL = true; enableACME = true; - locations."/".proxyPass = "http://127.0.0.1:5555"; + locations."/" = { + proxyPass = "http://127.0.0.1:5555"; + extraConfig = '' + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + ''; + }; }; } -- 2.51.2