modules: services: woodpecker: use 'ci' subdomain

This commit is contained in:
Bruno BELANYI 2023-08-06 14:49:35 +01:00
parent df99533433
commit ec0f6231af

View file

@ -9,7 +9,7 @@ in
environment = {
WOODPECKER_OPEN = "true";
WOODPECKER_HOST = "https://woodpecker.${config.networking.domain}";
WOODPECKER_HOST = "https://ci.${config.networking.domain}";
WOODPECKER_DATABASE_DRIVER = "postgres";
WOODPECKER_DATABASE_DATASOURCE = "postgres:///woodpecker?host=/run/postgresql";
WOODPECKER_ADMIN = "${cfg.admin}";
@ -53,9 +53,14 @@ in
my.services.nginx.virtualHosts = [
{
subdomain = "woodpecker";
subdomain = "ci";
inherit (cfg) port;
}
# Redirect `woodpecker.` to actual CI subdomain
{
subdomain = "woodpecker";
redirect = config.services.woodpecker-server.environment.WOODPECKER_HOST;
}
# I might want to be able to RPC from other hosts in the future
{
subdomain = "woodpecker-rpc";