e11sync

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit a950f87178b50361e54702b2a9c0c5b3e602f980 (tree)
parent 0f16146e6329b383507dbdd2926a91ac852de0de
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date:   Sun, 14 Jan 2024 23:23:39 +0200

e11sync: add an optional 'database-path'

will be useful during deployment.

Diffstat:
Mpkgs/e11sync.nix | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/pkgs/e11sync.nix b/pkgs/e11sync.nix @@ -1,5 +1,6 @@ { self, + lib, stdenv, runCommand, makeWrapper, @@ -8,6 +9,7 @@ libmaxminddb, dart-sass, gunicornPort ? 8001, + database-path ? null, geoip-archive, }: stdenv.mkDerivation { @@ -27,6 +29,9 @@ stdenv.mkDerivation { makeWrapper ${python3Packages.gunicorn}/bin/gunicorn $out/bin/e11sync-gunicorn \ --chdir $out/app \ --set-default E11SYNC_HTTP_PORT ${toString gunicornPort} \ + ${lib.optionalString (database-path != null) '' + --set E11SYNC_DATABASE_PATH "${database-path}" \ + ''} \ --set E11SYNC_DEBUG "" \ --set E11SYNC_COMPRESS_OFFLINE 1 \ --set GEOIP_PATH "${geoip-archive}" \