Skip to content

Instantly share code, notes, and snippets.

@hn-support hn-support/env.php
Last active Apr 15, 2019

Embed
What would you like to do?
magento2 configuration
<?php
return array (
'backend' => array (
'frontName' => 'webshop_admin',
),
'crypt' => array (
'key' => '355fb68f9e21189d170c1d759616cd58',
),
'db' => array (
'table_prefix' => '',
'connection' => array (
'default' => array (
'host' => 'mysqlmaster',
'dbname' => 'example_preinstalled_magento',
'username' => 'app',
'password' => 'yoursecuremysqldatabasepassword',
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;',
'active' => '1',
),
),
),
'resource' => array (
'default_setup' => array (
'connection' => 'default',
),
),
'x-frame-options' => 'SAMEORIGIN',
'MAGE_MODE' => 'default',
'cache_types' => array (
'config' => 1,
'layout' => 1,
'block_html' => 1,
'collections' => 1,
'reflection' => 1,
'db_ddl' => 1,
'eav' => 1,
'customer_notification' => 1,
'full_page' => 1,
'config_integration' => 1,
'config_integration_api' => 1,
'translate' => 1,
'config_webservice' => 1,
),
'http_cache_hosts' => array (
0 => array (
'host' => '127.0.0.1',
'port' => '6081',
),
),
'cache' => array(
'frontend' => array(
'default' => array(
'backend' => 'Cm_Cache_Backend_Redis',
'backend_options' => array(
'server' => '127.0.0.1',
'database' => '0',
'port' => '6379'
),
),
'page_cache' => array(
'backend' => 'Cm_Cache_Backend_Redis',
'backend_options' => array(
'server' => '127.0.0.1',
'port' => '6379',
'database' => '1',
'compress_data' => '0'
)
)
)
),
'session' => array(
'save' => 'redis',
'redis' => array(
'host' => 'redismaster',
'port' => '6379',
'password' => '',
'timeout' => '2.5',
'persistent_identifier' => '',
'database' => '2',
'compression_threshold' => '2048',
'compression_library' => 'gzip',
'log_level' => '1',
'max_concurrency' => '6',
'break_after_frontend' => '5',
'break_after_adminhtml' => '30',
'first_lifetime' => '600',
'bot_first_lifetime' => '60',
'bot_lifetime' => '7200',
'disable_locking' => '0',
'min_lifetime' => '60',
'max_lifetime' => '2592000',
),
),
'install' => array (
'date' => 'Fri, 04 Nov 2016 12:56:03 +0000',
),
);
@seansan

This comment has been minimized.

Copy link

commented Apr 15, 2019

Compress data under Cm_Cache_Backend_Redis: it does not need a compression_library / compression_type

for fpc: I only see compress_data ... there is no type to set? (like snappy)

for normal cache: I see no compress_data at all. Is normal cache not compressed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.