Skip to content

Commit 4c76803

Browse files
authored
Rearrange _location.conf template
Allow more of the main host parameters into the custom location configuration and reorder to make more sense.
1 parent 6a46e88 commit 4c76803

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

backend/templates/_location.conf

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
{% include "_assets.conf" %}
2-
{% include "_exploits.conf" %}
3-
{% include "_hsts.conf" %}
4-
5-
61
location {{ path }} {
72
proxy_set_header Host $host;
83
proxy_set_header X-Forwarded-Scheme $scheme;
@@ -11,7 +6,6 @@
116
proxy_set_header X-Real-IP $remote_addr;
127
proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
138

14-
159
{% if access_list_id > 0 %}
1610
{% if access_list.items.length > 0 %}
1711
# Authorization
@@ -33,6 +27,8 @@
3327

3428
{% endif %}
3529

30+
{% include "_assets.conf" %}
31+
{% include "_exploits.conf" %}
3632

3733
{% include "_forced_ssl.conf" %}
3834
{% include "_hsts.conf" %}
@@ -46,3 +42,4 @@
4642

4743
{{ advanced_config }}
4844
}
45+

0 commit comments

Comments
 (0)