]> git.ipfire.org Git - thirdparty/patchwork.git/commit
lib: Refresh nginx/uwsgi configuration
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 6 Sep 2016 20:37:03 +0000 (22:37 +0200)
committerStephen Finucane <stephenfinucane@hotmail.com>
Wed, 7 Sep 2016 20:03:37 +0000 (21:03 +0100)
commitdc7bf1cc3c8c2f9f1f57bb1ea9beb779542b496d
treec1b5266294416934447818216b8ee62796beb210
parent2fe9983b5df928aff5bd55722fff49424de4b361
lib: Refresh nginx/uwsgi configuration

As stated in http://uwsgi-docs.readthedocs.io/en/latest/Nginx.html:
"
Unfortunately nginx is not able to rewrite PATH_INFO accordingly to
SCRIPT_NAME. For such reason you need to instruct uWSGI to map specific
apps in the so called “mountpoint” and rewrite SCRIPT_NAME and PATH_INFO
automatically
[...]
ancient uWSGI versions used to support the so called “uwsgi_modifier1 30”
approach. Do not do it. it is a really ugly hack
"

Replacing the uwsgi_modifier1 hack by a mount point seems to work.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/nginx/patchwork.conf
lib/uwsgi/patchwork.ini