enable gitea and give it a subdomain
This commit is contained in:
parent
6fa078202c
commit
81035289f7
1 changed files with 17 additions and 0 deletions
|
|
@ -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}"
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue