summaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
diff options
context:
space:
mode:
authorMichael Griego <mgriego@users.noreply.github.com>2021-03-24 17:03:48 -0500
committerGitHub <noreply@github.com>2021-03-24 22:03:48 +0000
commit9b057aafb0c41bab63870277c53307d3d6dc572b (patch)
tree6f24b39c47be7ad0f4b0528054f5e7c3772d4344 /docker-entrypoint.sh
parentf1ca6dbfab022e44b8aed9909939a4c43726d2f2 (diff)
Enable session locking for the redis session handler and use more sane locking configs. (#1364)
Signed-off-by: Mike Griego <mike@griegocentral.com>
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-xdocker-entrypoint.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index bee572c2..b6da893b 100755
--- a/docker-entrypoint.sh
+++ b/docker-entrypoint.sh
@@ -69,6 +69,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
else
echo "session.save_path = \"tcp://${REDIS_HOST}:${REDIS_HOST_PORT:=6379}\""
fi
+ echo "redis.session.locking_enabled = 1"
+ echo "redis.session.lock_retries = -1"
+ # redis.session.lock_wait_time is specified in microseconds.
+ # Wait 10ms before retrying the lock rather than the default 2ms.
+ echo "redis.session.lock_wait_time = 10000"
} > /usr/local/etc/php/conf.d/redis-session.ini
fi