Adding nginx_main_template.http_custom_includes (#270)
This commit is contained in:
parent
902d4ff83f
commit
21e03b27dd
@ -49,6 +49,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: []
|
||||||
|
@ -44,6 +44,8 @@
|
|||||||
- master_process on;
|
- master_process on;
|
||||||
http_custom_options:
|
http_custom_options:
|
||||||
- aio off;
|
- aio off;
|
||||||
|
http_custom_includes:
|
||||||
|
- "/etc/nginx/sites-enabled/*.conf"
|
||||||
events_custom_options:
|
events_custom_options:
|
||||||
- accept_mutex off;
|
- accept_mutex off;
|
||||||
stream_enable: true
|
stream_enable: true
|
||||||
|
@ -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_include }};
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user