modules: services: gitea: change domain to 'git.*'

Because cool URLs don't change [1], setup a re-directed for it.

[1]: https://www.w3.org/Provider/Style/URI.html
This commit is contained in:
Bruno BELANYI 2023-03-16 21:31:19 +01:00
parent b3d90be8b1
commit e50b259a70

View file

@ -50,7 +50,7 @@ in
services.gitea =
let
inherit (config.networking) domain;
giteaDomain = "gitea.${domain}";
giteaDomain = "git.${domain}";
in
{
enable = true;
@ -112,11 +112,16 @@ in
};
users.groups.git = { };
# Proxy to Gitea
my.services.nginx.virtualHosts = [
# Proxy to Gitea
{
subdomain = "git";
inherit (cfg) port;
}
# Redirect `gitea.` to actual forge subdomain
{
subdomain = "gitea";
inherit (cfg) port;
redirect = config.services.gitea.rootUrl;
}
];