Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis patch #735

Closed
wants to merge 2 commits into from
Closed

Redis patch #735

wants to merge 2 commits into from

Conversation

epma01
Copy link

@epma01 epma01 commented May 1, 2019

Fix Broken Redis session handler with unix socket #730

Without more patches redis can be used now in socket mode, setting REDIS_HOST to socket path and REDIS_HOST_PORT to 0

The RedisFactory.php server file must be patched if we want to avoid having to establish REDIS_HOST_PORT

epma01 added 2 commits May 1, 2019 21:14
Broken Redis session handler with unix socket, can't login (#730)
Broken Redis session handler with unix socket, can't login (#730)
@@ -25,7 +25,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
echo "Configuring Redis as session handler"
{
echo 'session.save_handler = redis'
echo "session.save_path = \"tcp://${REDIS_HOST}:${REDIS_HOST_PORT:=6379}\""
if [[ ${REDIS_HOST:0:1} == "/" ]] ; then
echo "session.save_path = \"unix://${REDIS_HOST}?persistent=1&weight=1&database=0\""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these extra arguments required for sockets?

tortuetorche added a commit to tortuetorche/docker that referenced this pull request Dec 16, 2019
Rebase and rewrite the @epma01 pull request, based on last Nextcloud Docker changes
See: nextcloud#735
tortuetorche added a commit to tortuetorche/docker that referenced this pull request Dec 16, 2019
Rebase and rewrite the @epma01 pull request, based on last Nextcloud Docker changes
See: nextcloud#735

Signed-off-by: Tortue Torche <tortuetorche@users.noreply.github.com>
tortuetorche added a commit to tortuetorche/docker that referenced this pull request Jan 9, 2020
Rebase and rewrite the @epma01 pull request, based on last Nextcloud Docker changes
See: nextcloud#735

Signed-off-by: Tortue Torche <tortuetorche@users.noreply.github.com>
J0WI pushed a commit that referenced this pull request Jan 10, 2020
* Fix Redis Unix socket support

Rebase and rewrite the @epma01 pull request, based on last Nextcloud Docker changes
See: #735

Signed-off-by: Tortue Torche <tortuetorche@users.noreply.github.com>

* Fix CI tests with update.sh script

Signed-off-by: Tortue Torche <tortuetorche@users.noreply.github.com>
@J0WI
Copy link
Contributor

J0WI commented Jan 10, 2020

#944

@J0WI J0WI closed this Jan 10, 2020
Craeckie pushed a commit to Craeckie/nextcloud-docker-full that referenced this pull request Mar 30, 2022
* Fix Redis Unix socket support

Rebase and rewrite the @epma01 pull request, based on last Nextcloud Docker changes
See: nextcloud/docker#735

Signed-off-by: Tortue Torche <tortuetorche@users.noreply.github.com>

* Fix CI tests with update.sh script

Signed-off-by: Tortue Torche <tortuetorche@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants