Allow to define wsgi module instead of wsgi file

Change-Id: Ida62331721ac69fa622bef98872e22ac5fbca500
This commit is contained in:
Dmitriy Rabotyagov 2019-11-08 13:53:45 +02:00
parent a51c5c211b
commit a6aad9aefa
1 changed files with 4 additions and 0 deletions

View File

@ -8,7 +8,11 @@ virtualenv = {{ item.value.wsgi_venv }}
{% if uwsgi_install_method == 'distro' and (ansible_os_family | lower) in ['debian', 'suse' ] %}
plugin = python3
{% endif %}
{% if 'wsgi_path' in item.value %}
wsgi-file = {{ item.value.wsgi_path }}
{% elif 'wsgi' in item.value %}
wsgi = {{ item.value.wsgi }}
{% endif %}
http-socket = {{ item.value.uwsgi_bind_address | default('0.0.0.0') }}:{{ item.value.uwsgi_port | default(8080) }}
master = true