Adding nginx_main_template.http_custom_includes (#270)

This commit is contained in:
Emile Broeders 2020-06-24 15:50:28 +02:00 committed by GitHub
parent 902d4ff83f
commit 21e03b27dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

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

View File

@ -44,6 +44,8 @@
- master_process on;
http_custom_options:
- aio off;
http_custom_includes:
- "/etc/nginx/sites-enabled/*.conf"
events_custom_options:
- accept_mutex off;
stream_enable: true

View File

@ -119,6 +119,11 @@ http {
{% endfor %}
{% endif %}
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_include }};
{% endfor %}
{% endif %}
}
{% endif %}