diff --git a/devices/ellaca/options.nix b/devices/ellaca/options.nix index f039ed0..8cd73de 100644 --- a/devices/ellaca/options.nix +++ b/devices/ellaca/options.nix @@ -51,9 +51,6 @@ in { full = "git.${web-domain}"; base = web-domain; }; - ports = { - local = 3000; - }; }; stateVersion = "25.05"; diff --git a/modules/git/default.nix b/modules/git/default.nix index e8375a2..86a5d70 100644 --- a/modules/git/default.nix +++ b/modules/git/default.nix @@ -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 = { diff --git a/options.nix b/options.nix index 46f8345..464c40e 100644 --- a/options.nix +++ b/options.nix @@ -207,12 +207,6 @@ in { default = null; }; }; - ports = { - local = mkOption { - type = nullOr port; - default = null; - }; - }; }; username = mkOption {