Skip to content

Commit 20a5937

Browse files
committed
informatik c'est fantastik
1 parent 3219d5d commit 20a5937

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

conf/allowlist.conf.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
allow 127.0.0.1;
2-
{% for ip in ip_allowlist.split(',') %}
3-
allow {{ ip }};
4-
{% endfor %}
2+
{% if ip_allowlist.strip() != "" %}{% for ip in ip_allowlist.strip().split(',') %}
3+
allow {{ ip }};{% endfor %}{% endif %}
4+
55
deny all;

conf/basicauth.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
auth_basic "";
2-
auth_basic_user_file conf.d/$domain.d/$app.d/htpasswd;
2+
auth_basic_user_file conf.d/__DOMAIN__.d/__APP__.d/htpasswd;

conf/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ location __PATH__/ {
1313
proxy_set_header Upgrade $http_upgrade;
1414
proxy_set_header Connection "upgrade";
1515

16-
include /etc/nginx.d/conf.d/$domain.d/$app.d/*.conf;
16+
include conf.d/__DOMAIN__.d/__APP__.d/*.conf;
1717
}

0 commit comments

Comments
 (0)