Server/forgejo: use unix socket

This commit is contained in:
Toast 2025-11-06 23:09:12 +01:00
parent 9f7cf822ed
commit 284bd502f0

View file

@ -32,6 +32,7 @@ in {
};
server = {
OFFLINE_MODE = false;
PROTOCOL = "http+unix";
ROOT_URL = "https://git.toast003.xyz";
START_SSH_SERVER = true;
SSH_PORT = 4222;
@ -61,7 +62,7 @@ in {
services.caddy.virtualHosts.forgejo = {
hostName = "git.toast003.xyz";
extraConfig = ''
reverse_proxy localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}
reverse_proxy unix/${config.services.forgejo.settings.server.HTTP_ADDR}
'';
};
}