Skip to content

Commit 912c0f2

Browse files
committed
refactor: authelia default access_control policy
1 parent 02421cd commit 912c0f2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/book/examples.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,16 @@ The following two configurations are equivalent:
133133

134134
```nix
135135
{config, ...}: {
136+
137+
138+
136139
# Apply the authelia middleware for the Homepage service
137140
nps.stacks.homepage.containers.homepage = {
138141
traefik.middleware.authelia.enable = true;
139142
};
140-
# Setup a rule for the Homepage service domain.
143+
141144
nps.stacks.authelia.settings = {
145+
# Setup a rule for the Homepage service domain.
142146
access_control.rules = [
143147
{
144148
domain = config.nps.containers.homepage.traefik.serviceHost;

modules/authelia/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ in {
292292
password_reset.disable = lib.mkDefault true;
293293
password_change.disable = lib.mkDefault true;
294294
};
295-
295+
access_control.default_policy = config.nps.stacks.${name}.defaultAllowPolicy;
296296
notifier.filesystem.filename = "/notifier/notification.txt";
297297
session =
298298
{

0 commit comments

Comments
 (0)