Skip to content

Instantly share code, notes, and snippets.

@davidalger
Last active November 7, 2018 17:50
Show Gist options
  • Save davidalger/611f232c42ce81f2eccbd3b98fd9aa3f to your computer and use it in GitHub Desktop.
Save davidalger/611f232c42ce81f2eccbd3b98fd9aa3f to your computer and use it in GitHub Desktop.
<?php
return array (
'MAGE_MODE' => 'production',
'session' =>
array (
'save' => 'redis',
'redis' =>
array (
'host' => $cnf['redis_host'],
'port' => '6390',
'password' => '',
'timeout' => '2.5',
'persistent_identifier' => '',
'database' => '0',
'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',
),
),
'cache' =>
array (
'frontend' =>
array (
'default' =>
array (
'backend' => 'Cm_Cache_Backend_Redis',
'backend_options' =>
array (
'server' => $cnf['redis_host'],
'port' => '6389',
),
),
'page_cache' =>
array (
'backend' => 'Cm_Cache_Backend_Redis',
'backend_options' =>
array (
'server' => $cnf['redis_host'],
'port' => '6391',
'compress_data' => '0',
),
),
),
),
'http_cache_hosts' =>
array (
0 =>
array (
'host' => '127.0.0.1',
'port' => '6091',
),
),
'system' =>
array (
'default' =>
array (
'design' =>
array (
'head' =>
array (
'demonotice' => '1',
),
),
'web' =>
array (
'seo' =>
array (
'use_rewrites' => '1',
),
'unsecure' =>
array (
'base_url' => $cnf['base_url'],
'base_link_url' => $cnf['base_url'],
'base_static_url' => $cnf['base_url'] . 'static/',
'base_media_url' => $cnf['base_url'] . 'media/',
),
'url' =>
array (
'use_store' => '0',
'redirect_to_base' => '1',
),
'secure' =>
array (
'base_url' => $cnf['base_url'],
'base_link_url' => $cnf['base_url'],
'base_static_url' => $cnf['base_url'] . 'static/',
'base_media_url' => $cnf['base_url'] . 'media/',
'use_in_frontend' => '1',
'use_in_adminhtml' => '1',
'offloader_header' => 'SSL_OFFLOADED',
),
'cookie' =>
array (
'cookie_path' => NULL,
'cookie_httponly' => '1',
'cookie_restriction' => '0',
),
'session' =>
array (
'use_remote_addr' => '0',
'use_http_via' => '0',
'use_http_x_forwarded_for' => '0',
'use_http_user_agent' => '0',
'use_frontend_sid' => '1',
),
'browser_capabilities' =>
array (
'cookies' => '1',
'javascript' => '1',
'local_storage' => '0',
),
),
'catalog' =>
array (
'frontend' =>
array (
'list_allow_all' => '0',
'flat_catalog_category' => '0',
'flat_catalog_product' => '0',
),
),
'system' =>
array (
'full_page_cache' =>
array (
'caching_application' => '2',
'ttl' => '604800',
),
),
'dev' =>
array (
'front_end_development_workflow' =>
array (
'type' => 'server_side_compilation',
),
'template' =>
array (
'allow_symlink' => '0',
'minify_html' => '0',
),
'js' =>
array (
'merge_files' => '0',
'enable_js_bundling' => '0',
'minify_files' => '0',
'translate_strategy' => 'dictionary',
'session_storage_logging' => '0',
'session_storage_key' => 'collected_errors',
),
'css' =>
array (
'merge_css_files' => '0',
'minify_files' => '0',
),
'image' =>
array (
'default_adapter' => 'GD2',
),
'static' =>
array (
'sign' => '1',
),
),
'admin' =>
array (
'url' =>
array (
'use_custom' => '0',
'use_custom_path' => '0',
),
'security' =>
array (
'use_form_key' => '1',
'use_case_sensitive_login' => '0',
'session_lifetime' => '7200',
'lockout_failures' => '6',
'lockout_threshold' => '30',
'password_lifetime' => '90',
'password_is_forced' => '1',
),
),
),
'websites' =>
array (
'admin' =>
array (
'web' =>
array (
'unsecure' =>
array (
'base_url' => $cnf['admin_url'],
'base_link_url' => $cnf['admin_url'],
'base_static_url' => $cnf['admin_url'] . 'static/',
'base_media_url' => $cnf['admin_url'] . 'media/',
),
'secure' =>
array (
'base_url' => $cnf['admin_url'],
'base_link_url' => $cnf['admin_url'],
'base_static_url' => $cnf['admin_url'] . 'static/',
'base_media_url' => $cnf['admin_url'] . 'media/',
),
),
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment