Fix authelia urls.
This commit is contained in:
parent
7a609c3306
commit
dae4806d58
2 changed files with 16 additions and 2 deletions
|
|
@ -16,6 +16,13 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
url = mkOption {
|
||||
type = types.str;
|
||||
description = ''
|
||||
Authelia's url.
|
||||
'';
|
||||
};
|
||||
|
||||
userDbFile = mkOption {
|
||||
type = types.path;
|
||||
};
|
||||
|
|
@ -122,7 +129,7 @@ in {
|
|||
session.cookies = [
|
||||
{
|
||||
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 = {
|
||||
path = "/var/lib/authelia-main/db.sqlite3";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@
|
|||
|
||||
services.authelia = {
|
||||
enable = true;
|
||||
domain = "auth.foehammer.me";
|
||||
domain = "foehammer.me";
|
||||
url = "https://auth.foehammer.me";
|
||||
jwtSecretFile = config.sops.secrets.authelia-jwtsecret.path;
|
||||
|
||||
userDbFile = config.sops.secrets.authelia-users.path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue