add TLS configuration for redis/keydb connection

This commit is contained in:
Lawrence, Rendall
2025-01-03 22:00:45 +03:00
parent ebe4dc39b3
commit b0bbce093a
3 changed files with 75 additions and 4 deletions

View File

@@ -37,6 +37,16 @@ mochi:
# The addresses of redis storage.
addresses: ["127.0.0.1:6379"]
# Use TLS for connecting to specified addresses.
# Note: server names must strictly match with names,
# provided in certificates (CN or SAN field) and
# issuer must be trusted by system or provided in ca_certs.
tls: false
# Trusted CA certificates to check while TLS connection.
# If not provided, system certificates used.
ca_certs: []
# Database number
db: 0