1
Fork 0

uwsgi: stricter loading of plugins and app

This commit is contained in:
Motiejus Jakštys 2024-01-16 23:39:50 +02:00
parent 39dd8acd90
commit eb5691d342
1 changed files with 2 additions and 2 deletions

View File

@ -42,11 +42,11 @@ in
makeWrapper ${uwsgi-python}/bin/uwsgi $out/bin/e11sync-backend \
--chdir $out/app \
--set-default E11SYNC_HTTP_PORT ${toString backendPort} \
--add-flags "--plugin ${uwsgi-python}/lib/uwsgi/python3_plugin.so" \
--add-flags "--need-plugin ${uwsgi-python}/lib/uwsgi/python3_plugin.so" \
--add-flags "--python-path ${pythonEnv}/lib/${pythonEnv.libPrefix}/site-packages" \
--add-flags "--http-socket 127.0.0.1:${toString backendPort}" \
--add-flags "--wsgi-file e11sync/wsgi.py" \
--add-flags --master \
--add-flags "--master --need-app" \
${lib.optionalString (databasePath != null) ''
--set E11SYNC_DATABASE_PATH "${databasePath}" \
''} \