]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - virtual/packages/chloe.nix
Move each php session to a private destination
[perso/Immae/Config/Nix.git] / virtual / packages / chloe.nix
index a867bf207ce712228c61af2c9ee3ec1ec4b36352..863331772fc9e8edcbe605826861582d2b4ec5ff 100644 (file)
@@ -22,6 +22,7 @@ let
         php_admin_value[post_max_size] = 20M
         ;php_admin_flag[log_errors] = on
         php_admin_value[open_basedir] = "${./spip_mes_options.php}:${configDir}:${webRoot}:${varDir}:/tmp"
+        php_admin_value[session.save_path] = "${varDir}/phpSessions"
         env[SPIP_CONFIG_DIR] = "${configDir}"
         env[SPIP_VAR_DIR] = "${varDir}"
         env[SPIP_SITE] = "chloe-${environment}"
@@ -92,6 +93,7 @@ let
       deps = [ "wrappers" ];
       text = ''
         install -m 0755 -o ${apache.user} -g ${apache.group} -d ${varDir} ${varDir}/IMG ${varDir}/tmp ${varDir}/local
+        install -m 0750 -o ${apache.user} -g ${apache.group} -d ${varDir}/phpSessions
       '';
     };
     configDir = ./chloe_config;