Fix authelia urls.

This commit is contained in:
Lorenzo Good 2025-06-05 18:00:38 -05:00
parent 7a609c3306
commit dae4806d58
Signed by: lorenzo
GPG key ID: 7FCD64BD81180ED0
2 changed files with 16 additions and 2 deletions

View file

@ -16,6 +16,13 @@ in {
''; '';
}; };
url = mkOption {
type = types.str;
description = ''
Authelia's url.
'';
};
userDbFile = mkOption { userDbFile = mkOption {
type = types.path; type = types.path;
}; };
@ -122,7 +129,7 @@ in {
session.cookies = [ session.cookies = [
{ {
domain = cfg.domain; domain = cfg.domain;
authelia_url = "https://${cfg.domain}"; authelia_url = cfg.url;
} }
]; ];
@ -138,6 +145,12 @@ in {
}; };
}; };
server.endpoints.authz = {
forward-auth = {
implementation = "ForwardAuth";
};
};
storage.local = { storage.local = {
path = "/var/lib/authelia-main/db.sqlite3"; path = "/var/lib/authelia-main/db.sqlite3";
}; };

View file

@ -19,7 +19,8 @@
services.authelia = { services.authelia = {
enable = true; enable = true;
domain = "auth.foehammer.me"; domain = "foehammer.me";
url = "https://auth.foehammer.me";
jwtSecretFile = config.sops.secrets.authelia-jwtsecret.path; jwtSecretFile = config.sops.secrets.authelia-jwtsecret.path;
userDbFile = config.sops.secrets.authelia-users.path; userDbFile = config.sops.secrets.authelia-users.path;