feat: add sovran_systemsOS.caddy.extraVirtualHosts NixOS option

Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/e966dd20-b74e-4ec5-b4db-68aa06129162

Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-07 13:06:35 +00:00
committed by GitHub
parent 3668eb2829
commit dd8867b52f
3 changed files with 31 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
let
exposeBtcpay = config.sovran_systemsOS.web.btcpayserver;
extraVhosts = config.sovran_systemsOS.caddy.extraVirtualHosts;
in
{
services.caddy = {
@@ -170,6 +171,11 @@ EOF
encode gzip zstd
}
EOF
# Custom vhosts from custom.nix
cat >> /run/caddy/Caddyfile <<'CUSTOM_VHOSTS_EOF'
${extraVhosts}
CUSTOM_VHOSTS_EOF
'';
};
}