From c10a3517ac2bdd3c61324a857b73dae38b7f07bf Mon Sep 17 00:00:00 2001 From: "Ricardo (XenGi) Band" Date: Sun, 1 Feb 2026 13:58:26 +0100 Subject: [PATCH] switch from socket to port --- services/hedgedoc.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/services/hedgedoc.nix b/services/hedgedoc.nix index d8e8788..9650ced 100644 --- a/services/hedgedoc.nix +++ b/services/hedgedoc.nix @@ -12,7 +12,6 @@ in domain = fqdn; #environmentFile = config.age.secrets.hedgedoc_settings.path; protocolUseSSL = true; - path = "/run/hedgedoc/hedgedoc.sock"; db = { dialect = "postgresql"; host = "/run/postgresql"; @@ -36,7 +35,6 @@ in recommendedOptimisation = true; recommendedGzipSettings = true; recommendedBrotliSettings = true; - upstreams.hedgedoc.servers."unix:${cfg.path}" = { }; virtualHosts."${fqdn}" = { default = true; quic = true; @@ -45,23 +43,23 @@ in enableACME = true; locations = { "/" = { - proxyPass = "http://hedgedoc"; + proxyPass = "http://${cfg.host}:${toString cfg.port}"; recommendedProxySettings = true; }; "/socket.io/" = { - proxyPass = "http://hedgedoc"; + proxyPass = "http://${cfg.host}:${toString cfg.port}"; proxyWebsockets = true; recommendedProxySettings = true; }; "/metrics" = { - proxyPass = "http://hedgedoc"; + proxyPass = "http://${cfg.host}:${toString cfg.port}"; recommendedProxySettings = true; #allow 195.160.173.255; #allow 2001:678:760:cccb::ffff; #deny all; }; "/status" = { - proxyPass = "http://hedgedoc"; + proxyPass = "http://${cfg.host}:${toString cfg.port}"; recommendedProxySettings = true; #allow 195.160.173.255; #allow 2001:678:760:cccb::ffff;