From a9f02a8462fa3fbac5ab2c3698c6682b856b2dd8 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Tue, 3 Dec 2024 16:02:53 +0100 Subject: [PATCH] magpie/gitea: use unix socket for local connection --- magpie/configuration.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/magpie/configuration.nix b/magpie/configuration.nix index 143c88a..0be5475 100644 --- a/magpie/configuration.nix +++ b/magpie/configuration.nix @@ -194,7 +194,7 @@ forceSSL = true; enableACME = true; locations."/" = { - proxyPass = "http://localhost:${toString config.services.gitea.settings.server.HTTP_PORT}"; + proxyPass = "http://unix:${toString config.services.gitea.settings.server.HTTP_ADDR}"; }; }; @@ -222,6 +222,7 @@ DISABLE_SSH = true; HTTP_PORT = 3001; LANDING_PAGE = "explore"; + PROTOCOL = "http+unix"; }; settings.mailer = { ENABLED = true;