From 1278330dd4c3875508d05406af5087ed331e0780 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sat, 20 Jan 2024 11:26:29 +0100 Subject: [PATCH] revert part 2 --- conf/nginx.conf | 2 +- conf/uwsgi.ini | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 4e226ab..295694f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -21,7 +21,7 @@ # Needed for long running operations in admin interface uwsgi_read_timeout 3600; # Adjust based to uwsgi configuration: - uwsgi_pass unix:///var/run/__NAME__/socket; + uwsgi_pass unix:///var/run/__APP__/socket; # uwsgi_pass 127.0.0.1:8080; diff --git a/conf/uwsgi.ini b/conf/uwsgi.ini index d4f13d7..dd05900 100644 --- a/conf/uwsgi.ini +++ b/conf/uwsgi.ini @@ -2,8 +2,11 @@ plugins = python3 master = true protocol = uwsgi -socket = 127.0.0.1:8080 -wsgi-file = __INSTALL_DIR__/venv/lib/__WEBLATE_PYPATH__/site-packages/weblate/__APP__.ini +socket = /var/run/__APP__/socket + +# http://uwsgi-docs.readthedocs.io/en/latest/Nginx.html#hosting-multiple-apps-in-the-same-process-aka-managing-script-name-and-path-info +mount = __PATH__=__INSTALL_DIR__/venv/lib/__WEBLATE_PYPATH__/site-packages/weblate/wsgi.py + # Add path to Weblate checkout if you did not install # Weblate by pip