DEV Community

mayconheerdt
mayconheerdt

Posted on

3 2

Magento2 Redis TLS

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',
            ...
        ]
    ],
Enter fullscreen mode Exit fullscreen mode

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more