nchan_redis_ssl_server_name
Sets the SSL server name for Redis connections used by Nchan.
Description
The nchan_redis_ssl_server_name directive is primarily used to configure the server name that will be sent to the Redis server when establishing a secure SSL connection using the Nchan module in NGINX. This is essential for scenarios where the Redis server is hosted on a server that relies on SNI (Server Name Indication) to serve multiple SSL certificates based on the hostname of the request. By setting this directive, users can ensure that the correct SSL certificate is selected for connections to Redis, which promotes effective communication and security in a multi-tenant environment.
The directive accepts a single argument, which is the server name to use for the SSL connection. This argument should be the hostname that matches one of the SSL certificates installed on the Redis server. Proper configuration of this directive is crucial in environments where different Redis instances are hosted on the same IP but require different SSL certificates based on the server name provided.
Config Example
upstream redis_servers {
server redis1:6379;
server redis2:6379;
nchan_redis_ssl_server_name example.com;
}Ensure the provided server name matches the SSL certificate used by the Redis server to avoid SSL handshake errors.
This directive should be used only in the context where the Nchan module is configured to connect to Redis with SSL. Misplacement may result in no effect or configuration errors.