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 6e6e5857fd - Show all commits

View file

@ -5,6 +5,8 @@
[ [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
./keycloak.nix
]; ];
pub-solar.core.lite = true; pub-solar.core.lite = true;

View file

@ -0,0 +1,25 @@
{
config,
lib,
inputs,
pkgs,
self,
...
}: {
age.secrets.keycloak-database-password = {
file = "${self}/secrets/keycloak-database-password.age";
mode = "700";
};
# keycloak
services.keycloak = {
enable = true;
database.passwordFile = config.age.secrets.keycloak-database-password.path;
settings = {
hostname = "auth.momo.koeln";
http-host = "127.0.0.1";
http-port = 8080;
proxy = "edge";
};
};
}