Skip to content

Commit a3b896f

Browse files
authored
Update _location.conf
1 parent 60347a9 commit a3b896f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

backend/templates/_location.conf

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
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;
@@ -6,25 +11,26 @@
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

0 commit comments

Comments
 (0)