keycloak: Add Tailscale hostname as server alias

This commit is contained in:
Erwin Boskma 2023-08-30 12:28:38 +02:00
parent 94bce6c4ff
commit 34e7fee2f8
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ

View file

@ -26,6 +26,7 @@ in
virtualHosts = {
"${config.services.keycloak.settings.hostname}" = {
serverAliases = [ "heimdall.barn-beaver.ts.net" ];
extraConfig = ''
@public_or_allowed_remote {
expression path('/realms/*', '/resources/*', '/js/*', '/robots.txt') || remote_ip('10.64.0.0/10', '86.85.243.40/32', '2a02:a441:c959:1::/64')