From c25b0f0eee7dbb4859beec94e9fc155b4f2feacd Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 10 Sep 2022 16:16:47 +0200 Subject: [PATCH] feat(public-cof): ensure that hedgedocs bind on local ipv6 --- machines/public-cof/hedgedoc.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/machines/public-cof/hedgedoc.nix b/machines/public-cof/hedgedoc.nix index 258973f..de7edf2 100644 --- a/machines/public-cof/hedgedoc.nix +++ b/machines/public-cof/hedgedoc.nix @@ -9,7 +9,7 @@ in protocolUseSSL = true; # scp =; # TODO domain = "docs.beta.rz.ens.wtf"; - host = "localhost"; + host = "[::1]"; port = port; db = { dialect = "sqlite"; @@ -25,13 +25,11 @@ in enableACME = true; locations = { "/" = { - proxyPass = "http://localhost:${toString port}"; + proxyPass = "http://[::1]:${toString port}"; proxyWebsockets = true; }; }; }; }; }; - - networking.firewall.allowedTCPPorts = [ 433 80 ]; }