File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
molecule/common/playbooks Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ nginx_main_template:
25
25
worker_connections : 1024
26
26
http_enable : true
27
27
http_settings :
28
+ default_type : application/octet-stream
28
29
access_log_format :
29
30
- name : main
30
31
format : |-
Original file line number Diff line number Diff line change 27
27
worker_connections : 1024
28
28
http_enable : true
29
29
http_settings :
30
+ default_type : application/octet-stream
30
31
access_log_format :
31
32
- name : main
32
33
format : |
Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ events {
60
60
{% if nginx_main_template .http_enable %}
61
61
http {
62
62
include /etc/nginx/mime.types;
63
- default_type application/octet-stream;
63
+ {% if nginx_main_template .http_settings .default_type is defined and nginx_main_template .http_settings .default_type %}
64
+ default_type {{ nginx_main_template.http_settings.default_type }};
65
+ {% endif %}
64
66
65
67
{% for access_log in nginx_main_template .http_settings .access_log_format %}
66
68
log_format {{ access_log.name }} {{ access_log.format }};
You can’t perform that action at this time.
0 commit comments