Created
December 21, 2021 14:48
-
-
Save markshust/c5cfb1b1d36c7350eb5fb66ba100e2c5 to your computer and use it in GitHub Desktop.
sample env.php file for existing magento installs
This file contains hidden or 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 [ | |
| 'backend' => [ | |
| 'frontName' => 'admin' | |
| ], | |
| 'remote_storage' => [ | |
| 'driver' => 'file' | |
| ], | |
| 'queue' => [ | |
| 'consumers_wait_for_messages' => 1, | |
| 'amqp' => [ | |
| 'host' => 'rabbitmq', | |
| 'port' => '5672', | |
| 'user' => 'guest', | |
| 'password' => 'guest', | |
| 'virtualhost' => '/' | |
| ] | |
| ], | |
| 'crypt' => [ | |
| 'key' => 'YOUR_CRYPT_KEY' | |
| ], | |
| 'db' => [ | |
| 'table_prefix' => '', | |
| 'connection' => [ | |
| 'default' => [ | |
| 'host' => 'db', | |
| 'dbname' => 'magento', | |
| 'username' => 'magento', | |
| 'password' => 'magento', | |
| 'model' => 'mysql4', | |
| 'engine' => 'innodb', | |
| 'initStatements' => 'SET NAMES utf8;', | |
| 'active' => '1', | |
| 'driver_options' => [ | |
| 1014 => false | |
| ] | |
| ] | |
| ] | |
| ], | |
| 'resource' => [ | |
| 'default_setup' => [ | |
| 'connection' => 'default' | |
| ] | |
| ], | |
| 'x-frame-options' => 'SAMEORIGIN', | |
| 'MAGE_MODE' => 'developer', | |
| 'session' => [ | |
| 'save' => 'redis', | |
| 'redis' => [ | |
| 'host' => 'redis', | |
| 'port' => '6379', | |
| 'password' => '', | |
| 'timeout' => '2.5', | |
| 'persistent_identifier' => '', | |
| 'database' => '2', | |
| 'compression_threshold' => '2048', | |
| 'compression_library' => 'gzip', | |
| 'log_level' => '4', | |
| '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', | |
| 'sentinel_master' => '', | |
| 'sentinel_servers' => '', | |
| 'sentinel_connect_retries' => '5', | |
| 'sentinel_verify_master' => '0' | |
| ] | |
| ], | |
| 'cache' => [ | |
| 'frontend' => [ | |
| 'default' => [ | |
| 'id_prefix' => '69d_', | |
| 'backend' => 'Magento\\Framework\\Cache\\Backend\\Redis', | |
| 'backend_options' => [ | |
| 'server' => 'redis', | |
| 'database' => '0', | |
| 'port' => '6379', | |
| 'password' => '', | |
| 'compress_data' => '1', | |
| 'compression_lib' => '' | |
| ] | |
| ], | |
| 'page_cache' => [ | |
| 'id_prefix' => '69d_', | |
| 'backend' => 'Magento\\Framework\\Cache\\Backend\\Redis', | |
| 'backend_options' => [ | |
| 'server' => 'redis', | |
| 'database' => '1', | |
| 'port' => '6379', | |
| 'password' => '', | |
| 'compress_data' => '0', | |
| 'compression_lib' => '' | |
| ] | |
| ] | |
| ], | |
| 'allow_parallel_generation' => false | |
| ], | |
| 'lock' => [ | |
| 'provider' => 'db', | |
| 'config' => [ | |
| 'prefix' => null | |
| ] | |
| ], | |
| 'directories' => [ | |
| 'document_root_is_pub' => true | |
| ], | |
| 'cache_types' => [ | |
| 'config' => 1, | |
| 'layout' => 1, | |
| 'block_html' => 1, | |
| 'collections' => 1, | |
| 'reflection' => 1, | |
| 'db_ddl' => 1, | |
| 'compiled_config' => 1, | |
| 'eav' => 1, | |
| 'customer_notification' => 1, | |
| 'config_integration' => 1, | |
| 'config_integration_api' => 1, | |
| 'full_page' => 1, | |
| 'config_webservice' => 1, | |
| 'translate' => 1, | |
| 'vertex' => 1 | |
| ], | |
| 'downloadable_domains' => [ | |
| 'magento.test' | |
| ], | |
| 'install' => [ | |
| 'date' => 'Thu, 09 Dec 2021 13:48:30 +0000' | |
| ] | |
| ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment