Skip to content

Instantly share code, notes, and snippets.

@matt-bailey
Created May 18, 2017 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt-bailey/3768af1d9c6c372fc20deaec4ccac3cc to your computer and use it in GitHub Desktop.
Save matt-bailey/3768af1d9c6c372fc20deaec4ccac3cc to your computer and use it in GitHub Desktop.
Example Magento 2 env.php file
<?php
return array (
'backend' =>
array (
'frontName' => 'admin',
),
'crypt' =>
array (
'key' => '9af38453afda96c7862c7d10eb493ba4',
),
'session' =>
array (
'save' => 'files',
),
'db' =>
array (
'table_prefix' => '',
'connection' =>
array (
'default' =>
array (
'host' => '127.0.0.1',
'dbname' => 'database',
'username' => 'root',
'password' => 'root',
'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,
),
'install' =>
array (
'date' => 'Tue, 16 May 2017 09:13:48 +0000',
),
);
@Nurgiel
Copy link

Nurgiel commented Jul 11, 2022

Just remember to not share your real DB Crypt Key guys =]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment