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;