Server/forgejo: use unix socket
This commit is contained in:
parent
9f7cf822ed
commit
284bd502f0
1 changed files with 2 additions and 1 deletions
|
|
@ -32,6 +32,7 @@ in {
|
||||||
};
|
};
|
||||||
server = {
|
server = {
|
||||||
OFFLINE_MODE = false;
|
OFFLINE_MODE = false;
|
||||||
|
PROTOCOL = "http+unix";
|
||||||
ROOT_URL = "https://git.toast003.xyz";
|
ROOT_URL = "https://git.toast003.xyz";
|
||||||
START_SSH_SERVER = true;
|
START_SSH_SERVER = true;
|
||||||
SSH_PORT = 4222;
|
SSH_PORT = 4222;
|
||||||
|
|
@ -61,7 +62,7 @@ in {
|
||||||
services.caddy.virtualHosts.forgejo = {
|
services.caddy.virtualHosts.forgejo = {
|
||||||
hostName = "git.toast003.xyz";
|
hostName = "git.toast003.xyz";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
reverse_proxy localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}
|
reverse_proxy unix/${config.services.forgejo.settings.server.HTTP_ADDR}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue