2023-04-08 08:33:48 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
services.woodpecker-server = {
|
|
|
|
enable = true;
|
|
|
|
environment = {
|
|
|
|
WOODPECKER_SERVER_HOST = "woodpecker.chir.rs";
|
|
|
|
WOODPECKER_SERVER_PROTO = "https";
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|