authelia-nginx: fix hardcoded domain

This commit is contained in:
eyjhb 2024-11-20 19:21:22 +01:00
parent 43e6fe30f0
commit cbbed221c9
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -73,7 +73,7 @@ let
## Legacy Method: When there is a 401 response code from the authz endpoint redirect to the portal with the 'rd' ## Legacy Method: When there is a 401 response code from the authz endpoint redirect to the portal with the 'rd'
## URL parameter set to $target_url. This requires users update 'auth.example.com/' with their external authelia URL. ## URL parameter set to $target_url. This requires users update 'auth.example.com/' with their external authelia URL.
error_page 401 =302 https://auth.fricloud.dk/?rd=$target_url; error_page 401 =302 https://${config.mine.shared.settings.authelia.domain}/?rd=$target_url;
''; '';
in { in {
mine.shared.lib.authelia.mkProtectedWebsite = { vhostConfig, endpoint ? "/" }: lib.recursiveUpdate vhostConfig { mine.shared.lib.authelia.mkProtectedWebsite = { vhostConfig, endpoint ? "/" }: lib.recursiveUpdate vhostConfig {