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