From c170ecf7ac3ada3e6d067e7051ae0837ea639424 Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 19 Jun 2023 19:04:33 -0400 Subject: [PATCH] authelia: switch to postgres --- hosts/sakura/services/authelia.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/hosts/sakura/services/authelia.nix b/hosts/sakura/services/authelia.nix index 9b49a20..9c0b2e4 100644 --- a/hosts/sakura/services/authelia.nix +++ b/hosts/sakura/services/authelia.nix @@ -14,7 +14,7 @@ default_2fa_method = "totp"; default_redirection_url = "https://passport.notohh.dev/"; authentication_backend = { - file.path = "/etc/authelia/user.yml"; + file.path = "/var/lib/authelia-default/user.yml"; }; session = { domain = "notohh.dev"; @@ -51,8 +51,13 @@ notifier.filesystem = { filename = "/var/lib/authelia-default/notif.txt"; }; - storage.local = { - path = "/var/lib/authelia-default/db.sqlite3"; + storage.postgres = { + host = "192.168.1.211"; + port = 5432; + database = "authelia"; + schema = "public"; + username = "authelia"; + password = "authelia"; }; }; };