unix sockets for git

This commit is contained in:
twoneis 2025-03-09 22:43:03 +01:00
parent c855ff5bfe
commit 2bcd8a0601
3 changed files with 3 additions and 11 deletions

View file

@ -51,9 +51,6 @@ in {
full = "git.${web-domain}";
base = web-domain;
};
ports = {
local = 3000;
};
};
stateVersion = "25.05";

View file

@ -15,7 +15,7 @@ in
forceSSL = true;
locations = {
"/" = {
proxyPass = "http://localhost:${toString cfg.ports.local}";
proxyPass = "http://unix:/run/forgejo/socket";
};
};
};
@ -32,7 +32,8 @@ in
server = {
DOMAIN = cfg.domain.full;
ROOT_URL = "https://${cfg.domain.full}";
HTTP_PORT = cfg.ports.local;
PROTOCOL = "http+unix";
HTTP_ADDR = "/run/forgejo/socket";
};
service.DISABLE_REGISTRATION = true;
actions = {

View file

@ -207,12 +207,6 @@ in {
default = null;
};
};
ports = {
local = mkOption {
type = nullOr port;
default = null;
};
};
};
username = mkOption {