This commit is contained in:
Emile Broeders 2020-06-23 10:45:05 +00:00
parent 60796abcd5
commit e1643006cb
2 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,7 @@ nginx_main_template:
types: "text/html" types: "text/html"
# custom_options: [] # custom_options: []
# http_custom_options: [] # http_custom_options: []
# http_custom_includes: []
# events_custom_options: [] # events_custom_options: []
stream_enable: false stream_enable: false
# stream_custom_options: [] # stream_custom_options: []

View File

@ -119,6 +119,11 @@ http {
{% endfor %} {% endfor %}
{% endif %} {% endif %}
include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;
{% if nginx_main_template.http_custom_includes is defined and nginx_main_template.http_custom_includes | length %}
{% for inline_include in nginx_main_template.http_custom_includes %}
include {{ inline_option }};
{% endfor %}
{% endif %}
} }
{% endif %} {% endif %}