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:
parent
b3d90be8b1
commit
e50b259a70
|
@ -50,7 +50,7 @@ in
|
||||||
services.gitea =
|
services.gitea =
|
||||||
let
|
let
|
||||||
inherit (config.networking) domain;
|
inherit (config.networking) domain;
|
||||||
giteaDomain = "gitea.${domain}";
|
giteaDomain = "git.${domain}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -112,11 +112,16 @@ in
|
||||||
};
|
};
|
||||||
users.groups.git = { };
|
users.groups.git = { };
|
||||||
|
|
||||||
# Proxy to Gitea
|
|
||||||
my.services.nginx.virtualHosts = [
|
my.services.nginx.virtualHosts = [
|
||||||
|
# Proxy to Gitea
|
||||||
|
{
|
||||||
|
subdomain = "git";
|
||||||
|
inherit (cfg) port;
|
||||||
|
}
|
||||||
|
# Redirect `gitea.` to actual forge subdomain
|
||||||
{
|
{
|
||||||
subdomain = "gitea";
|
subdomain = "gitea";
|
||||||
inherit (cfg) port;
|
redirect = config.services.gitea.rootUrl;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue