authelia-nginx: chnaged how to protect websites
This commit is contained in:
parent
7cde74ce97
commit
57a5740f6f
2 changed files with 3 additions and 9 deletions
|
@ -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}";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue