Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion lib/pubsubstub.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def redis=(client)
end

def new_redis
Redis.new(url: redis_url)
Redis.new(url: redis_url, ssl_params: redis_ssl_params)
end

def subscriber
Expand All @@ -65,6 +65,16 @@ def report_errors
handle_error(error)
raise
end

def redis_ssl_params
if(ENV['REDIS_SSL_VERIFY'] == 'false')
{
verify_mode: OpenSSL::SSL::VERIFY_NONE
}
else
{}
end
end
end

self.logger = Logger.new(STDOUT)
Expand Down
Loading