summaryrefslogtreecommitdiff
path: root/config/keycloak.nix
blob: 7209d8ecb6b97f313e722222c0780b0f3796ff0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ 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;
  };
}