From d9573ec07a52f2b47e1f3524078668584fe0d795 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 23 Feb 2021 13:25:41 -0800 Subject: [PATCH] Allow mounting somewhere other than / This allows the app to be served from something other than the root of the server (eg, foo.example.com/logs). The --manage-script-name argument tells uwsgi to rewrite PATH_INFO so that the app doesn't see mountpoint part of the path. Change-Id: Id1cb90752fedd42534809fdfdddb13e29f8262c5 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 094e637..ed30fd5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,5 +10,5 @@ RUN /output/install-from-bindep \ && useradd -u 10001 -m -d /var/lib/zuul -c "Zuul Daemon" zuul EXPOSE 8000 -ENV UWSGI_HTTP_SOCKET=:8000 UWSGI_PROCESSES=10 UWSGI_THREADS=1 -CMD uwsgi --mount /=zuul_storage_proxy:proxy +ENV UWSGI_HTTP_SOCKET=:8000 UWSGI_PROCESSES=10 UWSGI_THREADS=1 MOUNTPOINT=/ +CMD uwsgi --mount $MOUNTPOINT=zuul_storage_proxy:proxy --manage-script-name