Fix indent for Authelia rules

This commit is contained in:
IamTheFij 2024-02-20 10:05:25 -08:00
parent 64a085ef80
commit 5fb510202d
2 changed files with 4 additions and 6 deletions

View File

@ -132,7 +132,7 @@
"filename": "core/authelia.yml",
"hashed_secret": "a32b08d97b1615dc27f58b6b17f67624c04e2c4f",
"is_verified": false,
"line_number": 191,
"line_number": 189,
"is_secret": false
}
],
@ -187,5 +187,5 @@
}
]
},
"generated_at": "2024-01-08T22:56:56Z"
"generated_at": "2024-02-20T18:04:29Z"
}

View File

@ -151,12 +151,10 @@ access_control:
networks: 192.168.5.0/24
rules:
{{ range nomadVarList "authelia/access_control/service_rules" -}}
{{- with nomadVar .Path -}}
{{ range nomadVarList "authelia/access_control/service_rules" }}{{ with nomadVar .Path }}
- domain: '{{ .name }}.{{ with nomadVar "nomad/jobs" }}{{ .base_hostname }}{{ end }}'
{{ .rule.Value | indent 6 }}
{{- end }}
{{- end }}
{{ end }}{{ end }}
## Rules applied to everyone
- domain: '*.{{ with nomadVar "nomad/jobs" }}{{ .base_hostname }}{{ end }}'
networks: