Last active
November 4, 2022 22:23
-
-
Save hn-support/4bf9575e7896abf57dff2b5ac15f05ef to your computer and use it in GitHub Desktop.
magento2 configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' => '1', | |
'min_lifetime' => '60', | |
'max_lifetime' => '2592000', | |
), | |
), | |
'install' => array ( | |
'date' => 'Fri, 04 Nov 2016 12:56:03 +0000', | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?