add maps to vhost template
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
13d524fd9a
commit
51f883fd96
@ -117,6 +117,12 @@ nginx_vhosts_default:
|
|||||||
# dhparam:
|
# dhparam:
|
||||||
# client_max_body_size:
|
# client_max_body_size:
|
||||||
# send_timeout:
|
# send_timeout:
|
||||||
|
# maps:
|
||||||
|
# - input: $input
|
||||||
|
# output: $output
|
||||||
|
# parameters:
|
||||||
|
# - "default 0"
|
||||||
|
# - "/old/path /new_path"
|
||||||
# locations:
|
# locations:
|
||||||
# - match: /
|
# - match: /
|
||||||
# root: /var/www/vhosts/default
|
# root: /var/www/vhosts/default
|
||||||
|
@ -37,7 +37,17 @@ server {
|
|||||||
{% if server.send_timeout is defined and server.send_timeout %}
|
{% if server.send_timeout is defined and server.send_timeout %}
|
||||||
send_timeout {{ server.send_timeout }};
|
send_timeout {{ server.send_timeout }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if server.maps is defined and server.maps %}
|
||||||
|
|
||||||
|
{% for map in server.maps %}
|
||||||
|
map {{ map.input }} {{ map.output }} {
|
||||||
|
{% for param in map.parameters %}
|
||||||
|
{{ param }};
|
||||||
|
{% endfor %}
|
||||||
|
}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
{% for location in server.locations %}
|
{% for location in server.locations %}
|
||||||
location {{ location.match }} {
|
location {{ location.match }} {
|
||||||
{% if location.root is defined and location.root %}
|
{% if location.root is defined and location.root %}
|
||||||
|
Loading…
Reference in New Issue
Block a user