os/hosts/pioneer-momo-koeln/caddy.nix
Hendrik Sokolowski be19dd7477
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
rename host-001 to pioneer
2023-04-26 21:38:36 +02:00

27 lines
513 B
Nix

{
config,
...
}: {
# Changing the Caddyfile should only trigger a reload, not a restart
systemd.services.caddy.reloadTriggers = [
config.services.caddy.configFile
];
services.caddy = {
enable = true;
email = "wg-tooling@list.momo.koeln";
virtualHosts = {
"auth.momo.koeln" = {
logFormat = ''
output discard
'';
extraConfig = ''
reverse_proxy :8080
'';
};
};
};
networking.firewall.allowedTCPPorts = [80 443];
}