Cloudreve icon indicating copy to clipboard operation
Cloudreve copied to clipboard

mysql连接支持ssl/tls

Open lsCoding666 opened this issue 3 years ago • 4 comments

希望增加mysql配置支持ssl/tls的功能,在conf.ini中添加一些字段。

mysql -h e51qu8igdpnf.ap-northeast-2.psdb.cloud -u 1v52wqgzm4t8 -p************ --ssl-mode=VERIFY_IDENTITY --ssl-ca=/etc/ssl/certs/ca-certificates.crt
DSN=1v52wqgzm4t8:************@tcp(e51qu8igdpnf.ap-northeast-2.psdb.cloud)/cloudreve?tls=true

上面两行意思相同,都是连接同一个数据库的命令

就是支持开启ssl连接

https://github.com/cloudreve/Cloudreve/blob/4a4375a796183d3cbd85daf7cfb2d36230892757/models/init.go#L45-L52

lsCoding666 avatar Apr 28 '22 09:04 lsCoding666

https://github.com/cloudreve/Cloudreve/pull/1255

lsCoding666 avatar Apr 28 '22 14:04 lsCoding666

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 23 '23 16:04 stale[bot]

同样的问题, 希望对 PostgreSQL 和 Redis 添加 SSL/TLS 连接支持.

cxplay avatar May 23 '23 05:05 cxplay

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 17 '24 06:05 stale[bot]