2024-06-21 09:25:02 +00:00
|
|
|
{config, ...}: {
|
|
|
|
age.secrets.woodpecker.file = ../../secrets/woodpecker.age;
|
|
|
|
|
|
|
|
services = let
|
|
|
|
port = 3007;
|
|
|
|
in {
|
|
|
|
woodpecker-server = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
WOODPECKER_OPEN = "true";
|
|
|
|
WOODPECKER_ORGS = "kitchen";
|
|
|
|
WOODPECKER_ADMIN = "chef";
|
2024-06-21 10:08:08 +00:00
|
|
|
WOODPECKER_HOST = "https://build.buffets.kitchen/";
|
2024-06-21 09:25:02 +00:00
|
|
|
WOODPECKER_SERVER_ADDR = ":${toString port}";
|
|
|
|
|
2024-06-21 10:56:55 +00:00
|
|
|
WOODPECKER_GITEA = "true";
|
|
|
|
WOODPECKER_GITEA_URL = "https://buffets.kitchen/";
|
2024-06-21 09:25:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
environmentFile = config.age.secrets.woodpecker.path;
|
|
|
|
};
|
|
|
|
|
|
|
|
nginx = {
|
|
|
|
virtualHosts."build.buffets.kitchen" = {
|
|
|
|
useACMEHost = "buffet.sh";
|
|
|
|
forceSSL = true;
|
|
|
|
|
|
|
|
locations = {
|
|
|
|
"/" = {
|
|
|
|
proxyPass = "http://localhost:${toString port}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|