enable gitea and give it a subdomain

This commit is contained in:
Yisroel Baum 2026-04-06 21:57:47 +03:00
parent 6fa078202c
commit 81035289f7
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -54,6 +54,10 @@ in
Defaults timestamp_timeout=120
'';
services.gitea = {
enable = true;
};
services.logind.settings.Login = {
HandleLidSwitch = "ignore";
};
@ -140,6 +144,18 @@ in
};
};
};
"git.${domainName}" = {
forceSSL = true;
useACMEHost = "${domainName}";
locations = {
"/" = {
proxyPass = "http://localhost:3000";
};
"/.well-known/acme-challenge" = {
root = "/var/lib/acme/.challenges";
};
};
};
};
};
security.acme = {
@ -151,6 +167,7 @@ in
webroot = "/var/lib/acme/.challenges";
group = config.services.nginx.group;
extraDomainNames = [
"git.${domainName}"
"jellyfin.${domainName}"
"www.${domainName}"
];