From 205a9484865e5366c3112ead430300d791f49cc7 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Tue, 9 Jan 2024 17:35:34 +0000 Subject: [PATCH] nixos/middleman: Fix HedgeDoc websockets --- .../boxes/colony/vms/shill/containers/middleman/vhosts.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/boxes/colony/vms/shill/containers/middleman/vhosts.nix b/nixos/boxes/colony/vms/shill/containers/middleman/vhosts.nix index 3b8a00f..666e582 100644 --- a/nixos/boxes/colony/vms/shill/containers/middleman/vhosts.nix +++ b/nixos/boxes/colony/vms/shill/containers/middleman/vhosts.nix @@ -377,7 +377,11 @@ in }; "md.${pubDomain}" = { - locations."/".proxyPass = "http://object-ctr.${domain}:3000"; + locations."/" = { + proxyPass = "http://object-ctr.${domain}:3000"; + proxyWebsockets = true; + extraConfig = proxyHeaders; + }; useACMEHost = pubDomain; }; };