1
Fork 0

add E11SYNC_HTTP_PORT

This commit is contained in:
Motiejus Jakštys 2024-01-13 19:34:50 +02:00
parent a27d0cdc96
commit fbae45a98e
1 changed files with 2 additions and 1 deletions

View File

@ -86,10 +86,11 @@
cp -r ${self}/app $out cp -r ${self}/app $out
makeWrapper ${pkgs.python3Packages.gunicorn}/bin/gunicorn $out/bin/entrypoint \ makeWrapper ${pkgs.python3Packages.gunicorn}/bin/gunicorn $out/bin/entrypoint \
--chdir $out/app \ --chdir $out/app \
--set-default E11SYNC_HTTP_PORT ${toString gunicornPort} \
--set E11SYNC_DEBUG "" \ --set E11SYNC_DEBUG "" \
--set E11SYNC_COMPRESS_OFFLINE 1 \ --set E11SYNC_COMPRESS_OFFLINE 1 \
--set GEOIP_PATH "${geoip}" \ --set GEOIP_PATH "${geoip}" \
--add-flags --bind=127.0.0.1:${toString gunicornPort} \ --add-flags --bind=127.0.0.1:\$E11SYNC_HTTP_PORT \
--add-flags e11sync.wsgi --add-flags e11sync.wsgi
''; '';
passthru.tests = { passthru.tests = {