service/gitea: update and move to code-subdomain

This commit is contained in:
Felix Buehler 2022-12-25 12:26:39 +01:00
parent d06f324fec
commit b76fde3f9f

View file

@ -19,11 +19,12 @@ in
services.gitea = { services.gitea = {
enable = true; enable = true;
httpPort = cfg.port; httpPort = cfg.port;
log.level = "Warn"; rootUrl = "https://code.${domain}";
disableRegistration = true;
cookieSecure = true;
settings = { settings = {
session.COOKIE_SECURE = true;
service.DISABLE_REGISTRATION = true;
ui.DEFAULT_THEME = "arc-green"; ui.DEFAULT_THEME = "arc-green";
log.LEVEL = "Warn";
}; };
lfs.enable = true; lfs.enable = true;
}; };
@ -31,24 +32,24 @@ in
# Proxy to Gitea # Proxy to Gitea
my.services.nginx.virtualHosts = [ my.services.nginx.virtualHosts = [
{ {
subdomain = "git"; subdomain = "code";
inherit (cfg) port; inherit (cfg) port;
} }
]; ];
#my.services.backup = { my.services.backup = {
# paths = [ paths = [
# config.services.gitea.lfs.contentDir config.services.gitea.lfs.contentDir
# config.services.gitea.repositoryRoot config.services.gitea.repositoryRoot
# ]; ];
#}; };
webapps.apps.gitea = { webapps.apps.gitea = {
dashboard = { dashboard = {
name = "Git"; name = "Code";
category = "app"; category = "app";
icon = "git"; icon = "code-branch";
link = "https://git.${domain}"; link = "https://code.${domain}";
}; };
}; };
}; };