[nginx] Add feature to add additional params to a nginx server

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-02-18 22:07:24 +01:00 committed by ynerant
parent 19beb34227
commit 44cf074a39
2 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,7 @@ glob_nginx:
locations:
- filter: "/"
params: []
additional_params: []
upstreams: []
auth_passwd: []

View File

@ -92,6 +92,12 @@ server {
{% 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.additional_params is defined %}
{% for param in server.additional_params %}
{{ param }};
{% endfor %}
{% endif %}
{% if server.locations is defined %}
{% for location in server.locations %}
location {{ location.filter }} {