[nginx] Add feature to add additional params to a nginx server
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
19beb34227
commit
44cf074a39
|
@ -19,6 +19,7 @@ glob_nginx:
|
||||||
locations:
|
locations:
|
||||||
- filter: "/"
|
- filter: "/"
|
||||||
params: []
|
params: []
|
||||||
|
additional_params: []
|
||||||
upstreams: []
|
upstreams: []
|
||||||
|
|
||||||
auth_passwd: []
|
auth_passwd: []
|
||||||
|
|
|
@ -92,6 +92,12 @@ server {
|
||||||
{% if server.access_log is defined %}access_log {{ server.access_log }};{% endif %}
|
{% if server.access_log is defined %}access_log {{ server.access_log }};{% endif %}
|
||||||
{% if server.error_log is defined %}error_log {{ server.error_log }};{% endif %}
|
{% if server.error_log is defined %}error_log {{ server.error_log }};{% endif %}
|
||||||
|
|
||||||
|
{% if server.additional_params is defined %}
|
||||||
|
{% for param in server.additional_params %}
|
||||||
|
{{ param }};
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if server.locations is defined %}
|
{% if server.locations is defined %}
|
||||||
{% for location in server.locations %}
|
{% for location in server.locations %}
|
||||||
location {{ location.filter }} {
|
location {{ location.filter }} {
|
||||||
|
|
Loading…
Reference in New Issue