magpie/gitea: use unix socket for local connection

This commit is contained in:
Asmir A 2024-12-03 16:02:53 +01:00
parent 3f5747d8e0
commit a9f02a8462
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -194,7 +194,7 @@
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { 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; DISABLE_SSH = true;
HTTP_PORT = 3001; HTTP_PORT = 3001;
LANDING_PAGE = "explore"; LANDING_PAGE = "explore";
PROTOCOL = "http+unix";
}; };
settings.mailer = { settings.mailer = {
ENABLED = true; ENABLED = true;