X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fnicecoop%2Fgestion-compte.nix;h=a82fde2e22eb8b629511d6376b1967f494ae0b88;hb=bbea22c02b6c059a6be1064391f06737ee244ba6;hp=0d86297c4dd6b9e004e28000e678f72c535032c4;hpb=965b61c2d82ce9df9d71b5a2b3a550eb1ee09646;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/nicecoop/gestion-compte.nix b/modules/private/websites/nicecoop/gestion-compte.nix index 0d86297..a82fde2 100644 --- a/modules/private/websites/nicecoop/gestion-compte.nix +++ b/modules/private/websites/nicecoop/gestion-compte.nix @@ -26,13 +26,15 @@ in { ]; "php_admin_value[upload_max_filesize]" = "20M"; "php_admin_value[post_max_size]" = "20M"; - "php_admin_value[session.save_path]" = "${varDir}/phpSessions"; + "php_admin_value[session.save_handler]" = "redis"; + "php_admin_value[session.save_path]" = "'unix:///run/redis-php-sessions/redis.sock?persistent=1&prefix=Nicecoop:GestionCompteProduction:'"; "pm" = "dynamic"; "pm.max_children" = "20"; "pm.start_servers" = "2"; "pm.min_spare_servers" = "1"; "pm.max_spare_servers" = "3"; }; + phpPackage = pkgs.php74.withExtensions({ enabled, all }: enabled ++ [all.redis]); }; system.extraSystemBuilderCmds = let tarball = pkgs.runCommand "production.tar.gz" {} '' @@ -100,7 +102,7 @@ in { system.activationScripts.nicecoop_gestion-compte = { deps = []; text = '' - install -m 0700 -o wwwrun -g wwwrun -d ${varDir} ${varDir}/phpSessions ${varDir}/var + install -m 0700 -o wwwrun -g wwwrun -d ${varDir} ${varDir}/var ''; }; @@ -122,7 +124,7 @@ in { name = secrets.mysql.database; user = secrets.mysql.user; password = secrets.mysql.password; - version = pkgs.mariadb.mysqlVersion; + version = config.myServices.databases.mariadb.package.mysqlVersion; }; admipassword = secrets.adminpassword; smtp = {