diff options
author | Shane McDonald <me@shanemcd.com> | 2021-11-13 03:47:26 +0100 |
---|---|---|
committer | Shane McDonald <me@shanemcd.com> | 2022-02-04 01:00:07 +0100 |
commit | 9e8c40598ce4094e054a8843abf0a513417653b4 (patch) | |
tree | 3223d932f2d6cce0d5640827ec0d20ed6674b54a /tools/ansible | |
parent | Move production UWSGI config to a file (diff) | |
download | awx-9e8c40598ce4094e054a8843abf0a513417653b4.tar.xz awx-9e8c40598ce4094e054a8843abf0a513417653b4.zip |
Allow for overriding UWSGI mount path
This is just one piece of the puzzle as I try to add support for URL prefixing.
Diffstat (limited to 'tools/ansible')
-rw-r--r-- | tools/ansible/roles/dockerfile/files/uwsgi.ini | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/ansible/roles/dockerfile/files/uwsgi.ini b/tools/ansible/roles/dockerfile/files/uwsgi.ini index d496ed62c2..bfd1f87f70 100644 --- a/tools/ansible/roles/dockerfile/files/uwsgi.ini +++ b/tools/ansible/roles/dockerfile/files/uwsgi.ini @@ -5,7 +5,15 @@ master = true vacuum = true no-orphans = true lazy-apps = true +manage-script-name = true master-fifo = /var/lib/awx/awxfifo max-requests = 1000 buffer-size = 32768 -module = awx.wsgi:application + +if-env = UWSGI_MOUNT_PATH +mount = %(_)=awx.wsgi:application +endif = + +if-not-env = UWSGI_MOUNT_PATH +mount = /=awx.wsgi:application +endif = |