summaryrefslogtreecommitdiff
path: root/config/keycloak.nix
blob: fb02dc293f837ed55e0c9780a9bec0e49f41f3e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ config, lib, pkgs, ... }:

{
  age.secrets."dragon-keycloak.age".file = ../secrets/dragon-keycloak.age;
  services.postgresql.enable = true;
  services.keycloak = {
    enable = true;
    settings.hostname = "auth.orbekk.com";
    settings.log-level = "INFO";
    settings.http-port = (import ../data/aliases.nix).services.keycloak.http-port;
    settings.hostname-strict-https = false;
    settings.proxy = "edge";
    database.type = "postgresql";
    database.passwordFile = config.age.secrets."dragon-keycloak.age".path;
  };
}