After spending days searching on internet and trying on my local environment, I found no reference on how to setup Magento2 with Redis TLS.
So I decided to added a simple example of my env.php, so I hope I can help anyone with this setup.
'cache' => [
'frontend' => [
'default' => [
'backend' => 'Cm_Cache_Backend_Redis',
'backend_options' => [
'server' => 'tls://master.customer-store-production.msd21s.use1.cache.amazonaws.com',
'password' => 'password',
'database' => '2',
'port' => '6379',
...
]
],
'page_cache' => [
'backend' => 'Cm_Cache_Backend_Redis',
'backend_options' => [
'server' => 'tls://master.customer-store-production.msd21s.use1.cache.amazonaws.com',
'password' => 'password',
'port' => '6379',
'database' => '2',
...
]
]
]
],
'session' => [
'save' => 'redis',
'redis' => [
'host' => 'tls://master.customer-store-production.msd21s.use1.cache.amazonaws.com',
'port' => '6379',
'password' => 'password',
'database' => '3',
...
]
],
Top comments (0)