Skip to content

Commit

Permalink
Merge pull request #91 from tricknotes/fix-redis-ssl-error
Browse files Browse the repository at this point in the history
Fix SSL Error since Redis 7.0.15
  • Loading branch information
tricknotes authored Oct 21, 2024
2 parents c0d2857 + 84aa01b commit 85efd3f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions app/models/daily_mail_scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,17 @@ def scheduled_users
private

def redis
@redis ||= begin
RedisClient.config(url: Settings.redis_url).new_client
end
@redis ||=
begin
config = RedisClient.config(
url: Settings.redis_url,
ssl_params: {
verify_mode: OpenSSL::SSL::VERIFY_NONE
}
)

config.new_client
end
end

def status_for_user(user)
Expand Down

0 comments on commit 85efd3f

Please sign in to comment.