authelia-nginx: chnaged how to protect websites

This commit is contained in:
eyjhb 2024-12-03 22:06:04 +01:00
parent 7cde74ce97
commit 57a5740f6f
Signed by: eyjhb
GPG key ID: 609F508E3239F920
2 changed files with 3 additions and 9 deletions

View file

@ -18,9 +18,7 @@ in {
};
services.nginx.virtualHosts."${config.mine.shared.settings.domain}" = config.mine.shared.lib.authelia.mkProtectedWebsite {
endpoint = urlpath;
vhostConfig.locations."${urlpath}" = {
# extraConfig = "rewrite ^${urlpath}(.*)$ /$1 break;";
locations."${urlpath}" = config.mine.shared.lib.authelia.mkProtectedLocation {
proxyPass = "http://localhost:${builtins.toString port}";
};
};