authelia: configure endpoint i think
This commit is contained in:
parent
efefce538d
commit
c7d16e6427
@ -235,7 +235,8 @@ in
|
|||||||
let
|
let
|
||||||
api = "${config.authelia.upstream}/api/authz/auth-request";
|
api = "${config.authelia.upstream}/api/authz/auth-request";
|
||||||
in
|
in
|
||||||
lib.mkIf (!(isNull config.authelia.upstream)) {
|
lib.mkMerge [
|
||||||
|
(lib.mkIf (!(isNull config.authelia.upstream)) {
|
||||||
# just setup both, they can't be accessed externally anyways.
|
# just setup both, they can't be accessed externally anyways.
|
||||||
"/internal/authelia/authz" = {
|
"/internal/authelia/authz" = {
|
||||||
proxyPass = api;
|
proxyPass = api;
|
||||||
@ -251,7 +252,25 @@ in
|
|||||||
include ${autheliaBasicLocationConfig};
|
include ${autheliaBasicLocationConfig};
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
})
|
||||||
|
(lib.mkIf (!(isNull config.authelia.endpoint.upstream)) {
|
||||||
|
"/" = {
|
||||||
|
extraConfig = ''
|
||||||
|
include "${autheliaProxyConfig}";
|
||||||
|
'';
|
||||||
|
proxyPass = "${config.authelia.endpoint.upstream}";
|
||||||
|
recommendedProxySettings = false;
|
||||||
};
|
};
|
||||||
|
"= /api/verify" = {
|
||||||
|
proxyPass = "${config.authelia.endpoint.upstream}";
|
||||||
|
recommendedProxySettings = false;
|
||||||
|
};
|
||||||
|
"/api/authz" = {
|
||||||
|
proxyPass = "${config.authelia.endpoint.upstream}";
|
||||||
|
recommendedProxySettings = false;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user