File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11allow 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+
55deny all;
Original file line number Diff line number Diff line change 11auth_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;
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments