support Redis TLS connection #4

Closed
opened 2026-02-16 00:18:59 -05:00 by yindo · 0 comments
Owner

Originally created by @tmokmss on GitHub (Jan 28, 2025).

Hi! I'm trying Dify v1 and found some issue on our infrastructure setup.
 
Currently when a Redis server only accepts TLS connection, the plugin daemon will not work because it cannot connect to redis.

We can change the code here following this doc: Go Redis - Use TLS

https://github.com/langgenius/dify-plugin-daemon/blob/0f19a092ef11a922916aa48df43b1b635809e406/internal/utils/cache/redis.go#L21-L25

Dify API has a config parameter called REDIS_USE_SSL.

Thank you for creating Dify anyway!

Originally created by @tmokmss on GitHub (Jan 28, 2025). Hi! I'm trying Dify v1 and found some issue on our infrastructure setup.   Currently when a Redis server only accepts TLS connection, the plugin daemon will not work because it cannot connect to redis. We can change the code here following this doc: [Go Redis - Use TLS](https://redis.uptrace.dev/guide/go-redis.html#using-tls) https://github.com/langgenius/dify-plugin-daemon/blob/0f19a092ef11a922916aa48df43b1b635809e406/internal/utils/cache/redis.go#L21-L25 Dify API has a config parameter called [`REDIS_USE_SSL`](https://github.com/langgenius/dify/blob/d44882c1b5aa8ec59c73d5393ef677024a5e7e1a/api/configs/middleware/cache/redis_config.py#L37-L40). Thank you for creating Dify anyway!
yindo closed this issue 2026-02-16 00:18:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#4