001_momo_koeln: Add caddy

This commit is contained in:
Akshay Mankar 2023-03-31 15:58:57 +02:00
parent 6e6e5857fd
commit a0a92d27c9
Signed by: axeman
GPG key ID: CA08F3AB62369B89
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{
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];
}

View file

@ -6,6 +6,7 @@
# Include the results of the hardware scan.
./hardware-configuration.nix
./caddy.nix
./keycloak.nix
];