1

e11sync-backend systemd unit

This commit is contained in:
2024-01-16 15:38:00 +02:00
parent e5d01f23ad
commit 8bd66dab15
3 changed files with 59 additions and 9 deletions

View File

@@ -9,7 +9,7 @@
dart-sass,
uwsgi,
backendPort ? 8002,
database-path ? null,
databasePath ? null,
geoip-mmdb,
}: let
uwsgi-python = uwsgi.override {plugins = ["python3"];};
@@ -41,8 +41,8 @@ in
--add-flags "--http-socket 127.0.0.1:${toString backendPort}" \
--add-flags "--wsgi-file e11sync/wsgi.py" \
--add-flags --master \
${lib.optionalString (database-path != null) ''
--set E11SYNC_DATABASE_PATH "${database-path}" \
${lib.optionalString (databasePath != null) ''
--set E11SYNC_DATABASE_PATH "${databasePath}" \
''} \
--set E11SYNC_DEBUG "" \
--set E11SYNC_COMPRESS_OFFLINE 1 \