diff options
author | Kim Lindberger | 2024-06-29 17:09:02 +0200 |
---|---|---|
committer | GitHub | 2024-06-29 17:09:02 +0200 |
commit | b75986fd26996357e8840b28770796c18a8d1dcd (patch) | |
tree | 972c6a09136141e45449e9b179e7e7d1518234a8 /nixos | |
parent | 4a366ec4e5e8ee34fe4f721ec3aa55f4ec530564 (diff) | |
parent | a910bc81467ed9032b5c35eb8525a239bbd5886a (diff) |
Merge pull request #310642 from arcnmx/keycloak-hostname-strict
nixos/keycloak: relax hostname settings assertion
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/web-apps/keycloak.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/keycloak.nix b/nixos/modules/services/web-apps/keycloak.nix index 36bae2575974..5d429675bafc 100644 --- a/nixos/modules/services/web-apps/keycloak.nix +++ b/nixos/modules/services/web-apps/keycloak.nix @@ -328,7 +328,7 @@ in }; hostname = mkOption { - type = str; + type = nullOr str; example = "keycloak.example.com"; description = '' The hostname part of the public URL used as base for @@ -478,6 +478,10 @@ in message = "Setting up a local PostgreSQL db for Keycloak requires `standard_conforming_strings` turned on to work reliably"; } { + assertion = cfg.settings.hostname != null || ! cfg.settings.hostname-strict or true; + message = "Setting the Keycloak hostname is required, see `services.keycloak.settings.hostname`"; + } + { assertion = cfg.settings.hostname-url or null == null; message = '' The option `services.keycloak.settings.hostname-url' has been removed. |