From ed1c28c1fdff07bc6a786fe5c132cac5dcd7a5ac Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Thu, 17 Aug 2023 01:45:36 +0200 Subject: [PATCH] fix authelia configuration --- utils/modules/authelia/default.nix | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/utils/modules/authelia/default.nix b/utils/modules/authelia/default.nix index 5641f4b..1fd41e4 100644 --- a/utils/modules/authelia/default.nix +++ b/utils/modules/authelia/default.nix @@ -46,7 +46,6 @@ authentication_backend = { ldap = { url = "ldaps://ldap.cloonar.com"; - timout = "5s"; base_dn = "DC=cloonar,DC=com"; additional_users_dn = "OU=users"; users_filter = "(&({username_attribute}={input})(objectClass=person))"; @@ -62,19 +61,19 @@ }; }; - # access_control = { - # default_policy = "deny"; - # rules = [ - # { - # domain = ["auth.example.com"]; - # policy = "bypass"; - # } - # { - # domain = ["*.example.com"]; - # policy = "one_factor"; - # } - # ]; - # }; + access_control = { + default_policy = "one_factor"; + # rules = [ + # { + # domain = ["auth.example.com"]; + # policy = "bypass"; + # } + # { + # domain = ["*.example.com"]; + # policy = "one_factor"; + # } + # ]; + }; session = { name = "authelia_session"; @@ -95,6 +94,7 @@ host = "/run/mysqld/mysqld.sock'"; database = "authelia"; username = "authelia"; + password = "socket_auth"; timeout = "5s"; }; };