2023-04-08 08:33:48 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
services.woodpecker-server = {
|
|
|
|
enable = true;
|
|
|
|
environment = {
|
2023-04-08 09:42:19 +00:00
|
|
|
WOODPECKER_HOST = "https://woodpecker.chir.rs";
|
2023-04-08 08:33:48 +00:00
|
|
|
WOODPECKER_SERVER_PORT = ":47927";
|
|
|
|
};
|
2023-04-08 09:11:14 +00:00
|
|
|
environmentFile = config.sops.secrets."services/woodpecker".path;
|
2023-04-08 08:33:48 +00:00
|
|
|
};
|
|
|
|
sops.secrets."services/woodpecker" = {};
|
|
|
|
services.caddy.virtualHosts."woodpecker.int.chir.rs" = {
|
|
|
|
useACMEHost = "int.chir.rs";
|
|
|
|
logFormat = pkgs.lib.mkForce "";
|
|
|
|
extraConfig = ''
|
|
|
|
import baseConfig
|
|
|
|
reverse_proxy http://127.0.0.1:47927
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|