001_momo_koeln: Install caddy and keycloak #214

Merged
axeman merged 8 commits from momo/keycloak into momo/main 2023-04-25 16:02:44 +00:00
2 changed files with 27 additions and 0 deletions
Showing only changes of commit a0a92d27c9 - Show all commits

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

Typo: ./keycloak.nix

Typo: `./keycloak.nix`
];