-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1894 from denny/fix/sidekiq-redis
Add explicit sidekiq/redis initializer
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# frozen_string_literal: true | ||
|
||
# ShinyCMS ~ https://shinycms.org | ||
# | ||
# Copyright 2009-2025 Denny de la Haye ~ https://denny.me | ||
# | ||
# ShinyCMS is free software; you can redistribute it and/or modify it under the terms of the GPL (version 2 or later) | ||
|
||
# Configure Redis for Sidekiq | ||
|
||
redis_options = { url: ENV['REDIS_URL'] } | ||
|
||
redis_options[:ssl_params] = { verify_mode: OpenSSL::SSL::VERIFY_NONE } if ENV['REDIS_VERIFY_MODE'] == 'none' | ||
|
||
Sidekiq.configure_server do |config| | ||
# :nocov: | ||
config.redis = redis_options | ||
# :nocov: | ||
end | ||
|
||
Sidekiq.configure_client do |config| | ||
config.redis = redis_options | ||
end |