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
+
1
6
location {{ path }} {
2
7
proxy_set_header Host $host;
3
8
proxy_set_header X-Forwarded-Scheme $scheme;
6
11
proxy_set_header X-Real-IP $remote_addr;
7
12
proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
8
13
14
+
9
15
{% if access_list_id > 0 %}
10
16
{% if access_list.items.length > 0 %}
11
17
# Authorization
12
18
auth_basic "Authorization required";
13
19
auth_basic_user_file /data/access/{{ access_list_id }};
14
-
20
+
15
21
{{ access_list.passauth }}
16
22
{% endif %}
17
-
23
+
18
24
# Access Rules
19
25
{% for client in access_list.clients %}
20
26
{{- client.rule -}};
21
27
{% endfor %}deny all;
22
-
28
+
23
29
# Access checks must...
24
30
{% if access_list.satisfy %}
25
31
{{ access_list.satisfy }};
26
32
{% endif %}
27
-
33
+
28
34
{% endif %}
29
35
30
36
You can’t perform that action at this time.
0 commit comments