mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-12-01 02:17:50 +01:00
Merge pull request #5543 from Matthew-Kilpatrick/fix-deny-all-on-no-access-rules
fix: omit "Access rules" directives if no rules configured
This commit is contained in:
1 file changed
+2
@@ -10,11 +10,13 @@
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if access_list.clients.length > 0 %}
|
||||||
# Access Rules: {{ access_list.clients | size }} total
|
# Access Rules: {{ access_list.clients | size }} total
|
||||||
{% for client in access_list.clients %}
|
{% for client in access_list.clients %}
|
||||||
{{client | nginxAccessRule}}
|
{{client | nginxAccessRule}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
deny all;
|
deny all;
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# Access checks must...
|
# Access checks must...
|
||||||
{% if access_list.satisfy_any == 1 or access_list.satisfy_any == true %}
|
{% if access_list.satisfy_any == 1 or access_list.satisfy_any == true %}
|
||||||
|
|||||||
Reference in new issue
Block a user