+3
-10
nixos/modules/services/web-apps/lanraragi.nix
+3
-10
nixos/modules/services/web-apps/lanraragi.nix
···-REDIS_PASS=${lib.optionalString (cfg.redis.passwordFile != null) "$(head -n1 ${cfg.redis.passwordFile})"}+redis_password => "${lib.optionalString (cfg.redis.passwordFile != null) ''$(head -n1 ${cfg.redis.passwordFile})''}",···-PASS=$(head -n1 ${cfg.passwordFile}) ${cfg.package.perlEnv}/bin/perl -I${cfg.package}/share/lanraragi/lib -e \-'use LANraragi::Controller::Config; print LANraragi::Controller::Config::make_password_hash($ENV{PASS})' \+${lib.getExe pkgs.redis} -h 127.0.0.1 -p ${toString cfg.redis.port} ${lib.optionalString (cfg.redis.passwordFile != null) ''-a "$(head -n1 ${cfg.redis.passwordFile})"''}<<EOF+HSET LRR_CONFIG password $(${cfg.package}/bin/helpers/lrr-make-password-hash $(head -n1 ${cfg.passwordFile}))
+3
-5
nixos/tests/lanraragi.nix
+3
-5
nixos/tests/lanraragi.nix
······-machine2.succeed("[ $(curl -o /dev/null -X post 'http://localhost:4000/login' --data-raw 'password=ultra-secure-password' -w '%{http_code}') -eq 302 ]")+machine2.succeed("[ $(curl -o /dev/null -X post 'http://localhost:4000/login' --data-raw 'password=Ultra-secure-p@ssword-\"with-spec1al\\chars' -w '%{http_code}') -eq 302 ]")
-34
pkgs/by-name/la/lanraragi/fix-minion-redis-password.patch
-34
pkgs/by-name/la/lanraragi/fix-minion-redis-password.patch
···
+57
-18
pkgs/by-name/la/lanraragi/install.patch
+57
-18
pkgs/by-name/la/lanraragi/install.patch
······+- say("Installing Linux::Inotify2 for non-macOS systems... (This will do nothing if the package is there already)");+- eval "require $package"; #Run-time evals are needed here to check if the package has been properly installed.
+13
pkgs/by-name/la/lanraragi/loosen-dep-reqs.patch
+13
pkgs/by-name/la/lanraragi/loosen-dep-reqs.patch
···
+58
-49
pkgs/by-name/la/lanraragi/package.nix
+58
-49
pkgs/by-name/la/lanraragi/package.nix
···+url = "https://github.com/Difegue/LANraragi/commit/1711b39759ad02ab2a8863ce1f35f6479c9a2917.patch";+url = "https://github.com/Difegue/LANraragi/commit/087d63b11c89fda8cb3a30cdb2e86ecd6be66bb7.patch";···-url = "https://github.com/Difegue/LANraragi/commit/c5cd8641795bf7e40deef4ae955ea848dde44050.patch";······---add-flags "$out/share/lanraragi/script/launcher.pl -f $out/share/lanraragi/script/lanraragi"+--run "cp -n --no-preserve=all $out/share/lanraragi/lrr.conf ./lrr.conf 2>/dev/null || true" \+--add-flags "-e 'use LANraragi::Controller::Config; print LANraragi::Controller::Config::make_password_hash(@ARGV[0])' 2>/dev/null"···