1

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

View File

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