nixos-config/config/services/woodpecker.nix

26 lines
627 B
Nix
Raw Normal View History

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 09:44:09 +00:00
WOODPECKER_SERVER_ADDR = ":47927";
WOODPECKER_MAX_PROCS = toString config.nix.settings.cores;
2023-04-08 08:33:48 +00:00
};
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
'';
};
}