Format container configs
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -73,11 +73,19 @@ in
|
||||
identity_providers.oidc = {
|
||||
hmac_secret = hmConfig.sops.placeholder."authelia/oidcHmac";
|
||||
|
||||
jwks = [
|
||||
{
|
||||
key = hmConfig.sops.placeholder."authelia/oidcKey";
|
||||
}
|
||||
];
|
||||
jwks = [ { key = hmConfig.sops.placeholder."authelia/oidcKey"; } ];
|
||||
|
||||
authorization_policies = {
|
||||
admin = {
|
||||
default_policy = "deny";
|
||||
rules = [
|
||||
{
|
||||
policy = "two_factor";
|
||||
subject = [ "group:admins" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
storage = {
|
||||
@@ -126,14 +134,14 @@ in
|
||||
image = "docker-archive:${selfPkgs.docker-yq}";
|
||||
networks = [ networks.authelia.ref ];
|
||||
volumes = [
|
||||
"${home}/.local/share/authelia/config:/workdir/config"
|
||||
"${hmConfig.sops.templates."authelia-users.yaml".path}:/workdir/users.yaml:ro"
|
||||
"${home}/.local/share/authelia/config:/etc/authelia"
|
||||
"${hmConfig.sops.templates."authelia-users.yaml".path}:/etc/authelia/users.yaml.default:ro"
|
||||
];
|
||||
exec = [
|
||||
"eval-all"
|
||||
". as $item ireduce ({}; . * $item)"
|
||||
"/workdir/config/users.yaml"
|
||||
"/workdir/users.yaml"
|
||||
"/etc/authelia/users.yaml"
|
||||
"/etc/authelia/users.yaml.default"
|
||||
"-i"
|
||||
];
|
||||
};
|
||||
|
@@ -132,9 +132,7 @@ in
|
||||
];
|
||||
};
|
||||
in
|
||||
[
|
||||
"${config}:/etc/authelia/conf.d/traefik.yaml:ro"
|
||||
];
|
||||
[ "${config}:/etc/authelia/conf.d/traefik.yaml:ro" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user