allow nginx config extension

This commit is contained in:
Dmytro Makovey
2018-06-05 08:16:08 -07:00
parent 4fe7c9ea42
commit adaa164a19
3 changed files with 10 additions and 1 deletions

View File

@@ -134,7 +134,7 @@
delegate_to: localhost
- name: Stage nginx.conf
copy:
template:
src: nginx.conf
dest: "{{ docker_base_path }}/nginx.conf"
delegate_to: localhost

View File

@@ -84,6 +84,9 @@ http {
uwsgi_read_timeout 120s;
uwsgi_pass uwsgi;
include /etc/nginx/uwsgi_params;
{%- if extra_nginx_include is defined %}
include {{ extra_nginx_include }};
{%- endif %}
}
}
}