From c6d09c341d15f8bdafbe11d35dce57f319593553 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Tue, 9 Dec 2025 00:19:32 +0100 Subject: [PATCH] Update redis client configuration to support unix socket connection --- CHANGELOG.md | 1 + config/initializers/sidekiq.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7fdb3e0..dd90f8ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Cities visited during a trip are now being calculated correctly. #547 #641 - Points on the map are now show time in user's timezone. #580 - Date range inputs now handle pre-epoch dates gracefully by clamping to valid PostgreSQL integer range. #685 +- Redis client now also being configured so that it could connect via unix socket. #1970 # [0.36.2] - 2025-12-06 diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index 36994f83..eab639c2 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -24,7 +24,7 @@ Sidekiq.configure_server do |config| end Sidekiq.configure_client do |config| - config.redis = { url: "#{ENV['REDIS_URL']}/#{ENV.fetch('RAILS_JOB_QUEUE_DB', 1)}" } + config.redis = { url: ENV['REDIS_URL'], db: ENV.fetch('RAILS_JOB_QUEUE_DB', 1) } end Sidekiq::Queue['reverse_geocoding'].limit = 1 if Sidekiq.server? && DawarichSettings.photon_uses_komoot_io?