unix sockets for git
This commit is contained in:
parent
c855ff5bfe
commit
2bcd8a0601
3 changed files with 3 additions and 11 deletions
|
@ -51,9 +51,6 @@ in {
|
|||
full = "git.${web-domain}";
|
||||
base = web-domain;
|
||||
};
|
||||
ports = {
|
||||
local = 3000;
|
||||
};
|
||||
};
|
||||
|
||||
stateVersion = "25.05";
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -207,12 +207,6 @@ in {
|
|||
default = null;
|
||||
};
|
||||
};
|
||||
ports = {
|
||||
local = mkOption {
|
||||
type = nullOr port;
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
username = mkOption {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue