File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1+ {% include "_assets.conf" %}
2+ {% include "_exploits.conf" %}
3+ {% include "_hsts.conf" %}
4+
5+
16 location {{ path }} {
27 proxy_set_header Host $host;
38 proxy_set_header X-Forwarded-Scheme $scheme;
611 proxy_set_header X-Real-IP $remote_addr;
712 proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
813
14+
915 {% if access_list_id > 0 %}
1016 {% if access_list.items.length > 0 %}
1117 # Authorization
1218 auth_basic "Authorization required";
1319 auth_basic_user_file /data/access/{{ access_list_id }};
14-
20+
1521 {{ access_list.passauth }}
1622 {% endif %}
17-
23+
1824 # Access Rules
1925 {% for client in access_list.clients %}
2026 {{- client.rule -}};
2127 {% endfor %}deny all;
22-
28+
2329 # Access checks must...
2430 {% if access_list.satisfy %}
2531 {{ access_list.satisfy }};
2632 {% endif %}
27-
33+
2834 {% endif %}
2935
3036
You can’t perform that action at this time.
0 commit comments