File tree Expand file tree Collapse file tree 6 files changed +22
-3
lines changed Expand file tree Collapse file tree 6 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
ENHANCEMENTS:
6
6
7
- Bump the Ansible ` community.general ` collection to ` 6.2.0 ` and ` community.docker ` collection to ` 3.4.0 ` .
7
+ * Support the ` include ` directive in the main NGINX context.
8
+ * Bump the Ansible ` community.general ` collection to ` 6.2.0 ` and ` community.docker ` collection to ` 3.4.0 ` .
8
9
9
10
BUG FIXES:
10
11
Original file line number Diff line number Diff line change @@ -64,13 +64,14 @@ nginx_config_main_template:
64
64
# use: epoll
65
65
# worker_aio_requests: 32 # Number
66
66
worker_connections : 1024 # Number
67
+ # include: # String or a list of strings
68
+ # - /etc/nginx/modules.conf
67
69
http :
68
70
include : # String or a list of strings
69
71
- /etc/nginx/mime.types
70
72
- /etc/nginx/conf.d/*.conf
71
73
# stream:
72
- # include: # String or a list of strings
73
- # - /etc/nginx/conf.d/stream/*.conf
74
+ # include: /etc/nginx/conf.d/stream/*.conf # String or a list of strings
74
75
75
76
# Enable creating dynamic templated NGINX HTTP configuration files.
76
77
# Defaults will not produce a valid configuration. Instead they are meant to showcase
Original file line number Diff line number Diff line change
1
+ load_module modules/ngx_http_perl_module.so;
Original file line number Diff line number Diff line change 12
12
nginx_config_selinux_tcp_ports :
13
13
- 80
14
14
15
+ nginx_config_upload_enable : true
16
+ nginx_config_upload :
17
+ - src : ../common/files/snippets/modules.conf
18
+ dest : /etc/nginx/modules.conf
19
+
15
20
nginx_config_upload_ssl_enable : true
16
21
nginx_config_upload_ssl_crt :
17
22
- src : ../common/files/ssl/molecule.crt
69
74
use : epoll
70
75
worker_aio_requests : 32
71
76
worker_connections : 512
77
+ include :
78
+ - /etc/nginx/modules.conf
72
79
http :
73
80
include :
74
81
- /etc/nginx/conf.d/*.conf
Original file line number Diff line number Diff line change 8
8
vars :
9
9
nginx_modules :
10
10
- njs
11
+ - perl
Original file line number Diff line number Diff line change 5
5
{{ main(nginx_config_main_template['config'] ['main'] ) }}
6
6
{% - endif %}
7
7
8
+ {% if nginx_config_main_template ['config' ]['include' ] is defined and nginx_config_main_template ['config' ]['include' ] is not mapping %}
9
+ {% for file in nginx_config_main_template ['config' ]['include' ] if nginx_config_main_template ['config' ]['include' ] is not string %}
10
+ include {{ file }};
11
+ {% else %}
12
+ include {{ nginx_config_main_template['config'] ['include'] }};
13
+ {% endfor %}
14
+ {% - endif %}
15
+
8
16
events {
9
17
{% if nginx_config_main_template ['config' ]['events' ] is defined %}
10
18
{% from 'core.j2' import events with context %}
You can’t perform that action at this time.
0 commit comments