aboutsummaryrefslogtreecommitdiff
path: root/virtual/packages/piedsjaloux.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-08 00:45:37 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-08 00:50:36 +0100
commitc8e019b6a331a14d868a952ffab07bded2315390 (patch)
treec4179716605fd922b066d6d840a75fae60255969 /virtual/packages/piedsjaloux.nix
parent07f2f340ec1356562855342440297b50f8ac6856 (diff)
downloadNix-c8e019b6a331a14d868a952ffab07bded2315390.tar.gz
Nix-c8e019b6a331a14d868a952ffab07bded2315390.tar.zst
Nix-c8e019b6a331a14d868a952ffab07bded2315390.zip
Move each php session to a private destination
Diffstat (limited to 'virtual/packages/piedsjaloux.nix')
-rw-r--r--virtual/packages/piedsjaloux.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/virtual/packages/piedsjaloux.nix b/virtual/packages/piedsjaloux.nix
index 819bafb..1c3d8b7 100644
--- a/virtual/packages/piedsjaloux.nix
+++ b/virtual/packages/piedsjaloux.nix
@@ -38,6 +38,7 @@ let
38 php_admin_value[post_max_size] = 20M 38 php_admin_value[post_max_size] = 20M
39 ;php_admin_flag[log_errors] = on 39 ;php_admin_flag[log_errors] = on
40 php_admin_value[open_basedir] = "${configRoot}:${webappDir}:${varDir}:/tmp" 40 php_admin_value[open_basedir] = "${configRoot}:${webappDir}:${varDir}:/tmp"
41 php_admin_value[session.save_path] = "${varDir}/phpSessions"
41 ${if environment == "dev" then '' 42 ${if environment == "dev" then ''
42 pm = ondemand 43 pm = ondemand
43 pm.max_children = 5 44 pm.max_children = 5
@@ -123,6 +124,7 @@ let
123 text = '' 124 text = ''
124 install -m 0755 -o ${apache.user} -g ${apache.group} -d ${varDir} \ 125 install -m 0755 -o ${apache.user} -g ${apache.group} -d ${varDir} \
125 ${varDir}/tmp 126 ${varDir}/tmp
127 install -m 0750 -o ${apache.user} -g ${apache.group} -d ${varDir}/phpSessions
126 if [ ! -f "${varDir}/currentWebappDir" -o \ 128 if [ ! -f "${varDir}/currentWebappDir" -o \
127 "${webappDir}" != "$(cat ${varDir}/currentWebappDir 2>/dev/null)" ]; then 129 "${webappDir}" != "$(cat ${varDir}/currentWebappDir 2>/dev/null)" ]; then
128 pushd ${webappDir} > /dev/null 130 pushd ${webappDir} > /dev/null