Conversation
Previously, connections to cloud Redis platforms using rediss:// URLs could hang due to missing explicit TLS options in the ioredis client initialization. This fix automatically adds the `tls: {}` option when a rediss:// URL is detected, enabling proper TLS handshake for providers like Upstash, AWS, and Azure.
Added a log statement to clarify when a TLS connection is being used. Updated .env.example to document explicit rediss:// (TLS) support as well. This improves Docker deployment compatibility and prevents confusing silent connection failures for secure clusters.
…-add-tls-option Fix Redis client TLS support for rediss:// (cloud) connections
- 修复 Bull 队列在 TLS 连接时无法正确配置 SNI 的问题 - 将队列配置从 Redis URL 字符串改为 RedisOptions 对象,以便显式设置 TLS 参数 - 在 ioredis 客户端中添加显式的 hostname 配置用于 SNI 支持 - 增加 URL 解析错误处理,在配置错误时抛出异常停止启动 - 确保用户名和密码能够正确传递给 Redis 连接
7 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close #92