#583 Immich: add authelia bypass for mobile app

Adds bypasses for /api and /.well-known/immich so that the mobile app
authentication works.
This commit is contained in:
sivert 2025-11-12 08:10:01 +01:00 committed by Pierre Penninckx
parent ceabadb6aa
commit 5287f42316

View file

@ -544,6 +544,14 @@ in
inherit (cfg) subdomain domain ssl;
upstream = "http://127.0.0.1:${toString cfg.port}";
autheliaRules = lib.mkIf (cfg.sso.enable) [
{
domain = fqdn;
policy = "bypass";
resources = [
"^/api.*"
"^/.well-known/immich"
];
}
{
domain = fqdn;
policy = cfg.sso.authorization_policy;