From 9e8c40598ce4094e054a8843abf0a513417653b4 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Sat, 13 Nov 2021 02:47:26 +0000 Subject: [PATCH] Allow for overriding UWSGI mount path This is just one piece of the puzzle as I try to add support for URL prefixing. --- tools/ansible/roles/dockerfile/files/uwsgi.ini | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 =