From 56cc74c3ed63f98be9ead40a2ea83efcadc3791f Mon Sep 17 00:00:00 2001 From: ibizaman Date: Wed, 9 Aug 2023 00:09:56 -0700 Subject: [PATCH] add rules config to authelia module --- modules/authelia.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/authelia.nix b/modules/authelia.nix index e66a072..579b4ce 100644 --- a/modules/authelia.nix +++ b/modules/authelia.nix @@ -204,10 +204,13 @@ in ]; rules = [ { - domain = "test.${cfg.domain}"; - policy = "one_factor"; + domain = fqdn; + policy = "bypass"; + resources = [ + "^/api/.*" + ]; } - ]; + ] ++ cfg.rules; }; identity_providers.oidc.clients = cfg.oidcClients; telemetry = {