mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 18:37:39 -02:30
allow nginx config extension
This commit is contained in:
@@ -111,3 +111,9 @@ secret_key=awxsecret
|
|||||||
# /etc/pki/ca-trust in the awx_task and awx_web containers.
|
# /etc/pki/ca-trust in the awx_task and awx_web containers.
|
||||||
# NOTE: only obeyed in local_docker install
|
# NOTE: only obeyed in local_docker install
|
||||||
#ca_trust_dir=/etc/pki/ca-trust
|
#ca_trust_dir=/etc/pki/ca-trust
|
||||||
|
|
||||||
|
# Include /etc/nginx/awx_extra.conf
|
||||||
|
# Note the use of glob pattern for nginx
|
||||||
|
# which makes include "optional" - i.e. not fail
|
||||||
|
# if file is absent
|
||||||
|
#extra_nginx_include="/etc/nginx/awx_extra[.]conf"
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Stage nginx.conf
|
- name: Stage nginx.conf
|
||||||
copy:
|
template:
|
||||||
src: nginx.conf
|
src: nginx.conf
|
||||||
dest: "{{ docker_base_path }}/nginx.conf"
|
dest: "{{ docker_base_path }}/nginx.conf"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|||||||
@@ -84,6 +84,9 @@ http {
|
|||||||
uwsgi_read_timeout 120s;
|
uwsgi_read_timeout 120s;
|
||||||
uwsgi_pass uwsgi;
|
uwsgi_pass uwsgi;
|
||||||
include /etc/nginx/uwsgi_params;
|
include /etc/nginx/uwsgi_params;
|
||||||
|
{%- if extra_nginx_include is defined %}
|
||||||
|
include {{ extra_nginx_include }};
|
||||||
|
{%- endif %}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user