常规和高级配置路径参考

本主题列出了常规和高级配置路径以及​ 敏感值和系统特定值magento app:config:dump命令将这些值写入到共享配置文件app/etc/config.php中,该文件应位于源代码控制中。

若要选择性地覆盖任何配置设置或设置敏感设置,请参阅使用环境变量覆盖配置设置

常规类别

此部分列出了​ 存储 >设置> 配置 > 常规 ​下的管理员中选项可用的变量名称和配置路径。

常规路径

这些配置值在​ 存储 >设置> 配置 >常规> 常规 ​中的管理员中可用。

名称
配置路径
仅限Commerce?
敏感?
默认国家/地区
general/country/default
敏感
允许国家/地区
general/country/allow
敏感
对于,邮政编码是可选的
general/country/optional_zip_countries
敏感
欧洲联盟国家
general/country/eu_countries
敏感
热门目标
general/country/destinations
状态为必填
general/region/state_required
允许选择国家/地区可选的州
general/region/display_all
时区
general/locale/timezone
区域设置
general/locale/code
重量单位
general/locale/weight_unit
每周第一天
general/locale/firstday
周末
general/locale/weekend
访问限制
general/restriction/is_active
仅限Commerce
限制模式
general/restriction/mode
仅限Commerce
启动页面
general/restriction/http_redirect
仅限Commerce
登陆页面
general/restriction/cms_page
仅限Commerce
HTTP响应
general/restriction/http_status
仅限Commerce
存储名称
general/store_information/name
商店电话号码
general/store_information/phone
商店营业时间
general/store_information/hours
国家/地区
general/store_information/country_id
地区/州
general/store_information/region_id
邮政编码
general/store_information/postcode
城市
general/store_information/city
街道地址
general/store_information/street_line1
街道地址行2
general/store_information/street_line2
增值税号
general/store_information/merchant_vat_number
启用单存储模式
general/single_store_mode/enabled

Web路径

这些配置值在​ 存储 >设置> 配置 > 常规 > Web ​的管理员中可用。

名称
配置路径
仅限Commerce?
将存储代码添加到Url
web/url/use_store
自动重定向到基本URL
web/url/redirect_to_base
使用Web服务器重写
web/seo/use_rewrites
在店面上使用安全URL
web/secure/use_in_frontend
在管理员中使用安全URL
web/secure/use_in_adminhtml
启用HTTP严格传输安全(HSTS)
web/secure/enable_hsts
升级不安全的请求
web/secure/enable_upgrade_insecure
卸载程序标头
web/secure/offloader_header
CMS主页
web/default/cms_home_page
CMS无路由页
web/default/cms_no_route
“CMS无Cookie”页
web/default/cms_no_cookies
显示CMS页面的痕迹导航
web/default/show_cms_breadcrumbs
Cookie生命周期
web/cookie/cookie_lifetime
仅使用HTTP
web/cookie/cookie_httponly
Cookie限制模式
web/cookie/cookie_restriction
验证REMOTE_ADDR
web/session/use_remote_addr
验证HTTP_VIA
web/session/use_http_via
验证HTTP_X_FORWARDED_FOR
web/session/use_http_x_forwarded_for
验证HTTP_USER_AGENT
web/session/use_http_user_agent
在店面中使用SID
web/session/use_frontend_sid
如果禁用Cookie,则重定向至CMS页面
web/browser_capabilities/cookies
如果JavaScript被禁用,则显示通知
web/browser_capabilities/javascript
如果本地存储已禁用,则显示通知
web/browser_capabilities/local_storage

货币设置路径

这些配置值在​ 存储 >设置> 配置 > 常规 > 货币设置 ​的管理员中可用。

名称
配置路径
仅限Commerce?
基础货币
currency/options/base
默认显示货币
currency/options/default
允许的货币
currency/options/allow
Yahoo金融交易
TBD
Fixer.io
TBD
Webservicex
TBD
连接超时(以秒为单位)
currency/yahoofinance/timeout
连接超时(以秒为单位)
currency/fixerio/timeout
连接超时(以秒为单位)
currency/webservicex/timeout
已启用
currency/import/enabled
服务
currency/import/service
开始时间
currency/import/time
频率
currency/import/frequency
错误电子邮件收件人
currency/import/error_email
错误电子邮件发件人
currency/import/error_email_identity
错误电子邮件模板
currency/import/error_email_template

联系人路径

这些配置值在​ 存储 >设置> 配置 > 常规 > 联系人 ​中的管理员中可用。

名称
配置路径
仅限Commerce?
启用联系我们
contact/contact/enabled
发送电子邮件至
contact/email/recipient_email
电子邮件发件人
contact/email/sender_email_identity
电子邮件模板
contact/email/email_template

报告路径

这些配置值在​ 存储 >设置> 配置 > 常规 > 报告 ​的管理员中可用。

名称
配置路径
仅限Commerce?
年初至今开始
reports/dashboard/ytd_start
当前月份开始
reports/dashboard/mtd_start

内容管理路径

这些配置值在​ 存储 >设置> 配置 > 常规 > 内容管理 ​中的管理员中可用。

名称
配置路径
仅限Commerce?
启用WYSIWYG编辑器
cms/wysiwyg/enabled
在WYSIWYG中为目录中的媒体内容使用静态URL
cms/wysiwyg/use_static_urls_in_catalog
启用层次结构功能
cms/hierarchy/enabled
启用层次结构元数据
cms/hierarchy/metadata_enabled
层次结构菜单的默认布局
cms/hierarchy/menu_layout

New Relic报表路径

这些配置值在​ 存储 >设置> 配置 > 常规 > New Relic报表 ​的管理员中可用。

名称
配置路径
仅限Commerce?
启用New Relic集成
newrelicreporting/general/enable
New Relic应用程序名称
newrelicreporting/general/app_name
启用Cron
newrelicreporting/cron/enable_cron

高级类别

此部分列出了​ 商店 >设置> 配置 > 高级 ​下的管理员中选项可用的变量名称和配置路径。

管理员路径

这些配置值在​ 存储 >设置> 配置 > 高级 > 管理员 ​中的管理员中可用。

名称
配置路径
仅限Commerce?
忘记密码电子邮件模板
admin/emails/forgot_email_template
忘记并重置电子邮件发件人
admin/emails/forgot_email_identity
用户通知模板
admin/emails/user_notification_template
启动页面
admin/startup/menu_item_id
使用自定义管理员URL
admin/url/use_custom
使用自定义管理路径
admin/url/use_custom_path
管理员帐户共享
admin/security/admin_account_sharing
密码重置保护类型
admin/security/password_reset_protection_type
恢复链接过期时间(小时)
admin/security/password_reset_link_expiration_period
密码重置请求的最大数量
admin/security/max_number_password_reset_requests
密码重置请求间隔的最小时间
admin/security/min_time_between_password_reset_requests
向URL添加密钥
admin/security/use_form_key
登录区分大小写
admin/security/use_case_sensitive_login
管理员会话生命周期(秒)
admin/security/session_lifetime
锁定帐户的最大登录失败次数
admin/security/lockout_failures
锁定时间(分钟)
admin/security/lockout_threshold
密码生命周期(天)
admin/security/password_lifetime
密码更改
admin/security/password_is_forced
启用图表
admin/dashboard/enable_charts
在管理员中启用验证码
admin/captcha/enable
字体
admin/captcha/font
Forms
admin/captcha/forms
显示模式
admin/captcha/mode
失败的登录尝试次数
admin/captcha/failed_attempts_login
验证码超时(分钟)
admin/captcha/timeout
符号数
admin/captcha/length
验证码中使用的符号
admin/captcha/symbols
区分大小写
admin/captcha/case_sensitive
启用的操作
admin/magento_logging/actions

系统路径

这些配置值在​ 存储 >设置> 配置 > 高级 > 系统 ​的管理员中可用。

名称
配置路径
仅限Commerce?
成功的消息生命周期
system/mysqlmq/successful_messages_lifetime
重试以下时间后正在处理的消息
system/mysqlmq/retry_inprogress_after
失败消息生命周期
system/mysqlmq/failed_messages_lifetime
新消息生命周期
system/mysqlmq/new_messages_lifetime
生成计划间隔
system/cron/index/schedule_generate_every
提前计划
system/cron/index/schedule_ahead_for
如果未在中运行,则未运行
system/cron/index/schedule_lifetime
历史记录清理间隔
system/cron/index/history_cleanup_every
成功历史记录生命周期
system/cron/index/history_success_lifetime
失败历史记录生命周期
system/cron/index/history_failure_lifetime
使用单独的进程
system/cron/index/use_separate_process
生成计划间隔
system/cron/default/schedule_generate_every
提前计划
system/cron/default/schedule_ahead_for
如果未在中运行,则未运行
system/cron/default/schedule_lifetime
历史记录清理间隔
system/cron/default/history_cleanup_every
成功历史记录生命周期
system/cron/default/history_success_lifetime
失败历史记录生命周期
system/cron/default/history_failure_lifetime
生成计划间隔
system/cron/staging/schedule_generate_every
仅限Commerce
提前计划
system/cron/staging/schedule_ahead_for
仅限Commerce
如果未在中运行,则未运行
system/cron/staging/schedule_lifetime
仅限Commerce
历史记录清理间隔
system/cron/staging/history_cleanup_every
仅限Commerce
成功历史记录生命周期
system/cron/staging/history_success_lifetime
仅限Commerce
失败历史记录生命周期
system/cron/staging/history_failure_lifetime
仅限Commerce
使用单独的进程
system/cron/staging/use_separate_process
仅限Commerce
生成计划间隔
system/cron/catalog/event/schedule_generate_every
仅限Commerce
提前计划
system/cron/catalog/event/schedule_ahead_for
仅限Commerce
如果未在中运行,则未运行
system/cron/catalog/event/schedule_lifetime
仅限Commerce
历史记录清理间隔
system/cron/catalog/event/history_cleanup_every
仅限Commerce
成功历史记录生命周期
system/cron/catalog/event/history_success_lifetime
仅限Commerce
失败历史记录生命周期
system/cron/catalog/event/history_failure_lifetime
仅限Commerce
使用单独的进程
system/cron/catalog/event/use_separate_process
仅限Commerce
使用单独的进程
system/cron/default/use_separate_process
禁用电子邮件通信
system/smtp/disable
设置返回路径
system/smtp/set_return_path
返回路径电子邮件
system/smtp/return_path_email
安装的货币
system/currency/installed
使用HTTPS获取信息源
system/adminnotification/use_https
更新频率
system/adminnotification/frequency
上次更新
system/adminnotification/last_update
启用计划备份
system/backup/enabled
备份类型
system/backup/type
开始时间
system/backup/time
频率
system/backup/frequency
维护模式
system/backup/maintenance
日志条目生命周期,天
system/rotation/lifetime
日志存档频率
system/rotation/frequency
缓存应用程序
system/full_page_cache/caching_application
公共内容的TTL
system/full_page_cache/ttl
宽限期
system/full_page_cache/varnish/grace_period
导出配置
system/full_page_cache/varnish/export_button_version4
日志中保存的天数
system/bulk/lifetime
媒体存储
system/media_storage_configuration/media_storage
选择媒体数据库
system/media_storage_configuration/media_database (在Commerce 2.4.3中已弃用)
环境更新时间
system/media_storage_configuration/configuration_update_time
保存文件,天
system/magento_scheduled_import_export_log/save_days
启用计划文件历史记录清理
system/magento_scheduled_import_export_log/enabled
开始时间
system/magento_scheduled_import_export_log/time
频率
system/magento_scheduled_import_export_log/frequency
错误电子邮件模板
system/magento_scheduled_import_export_log/error_email_template

开发人员路径

这些配置值在​ 商店 >设置> 配置 > 高级 > 开发人员 ​的管理员中可用。

名称
配置路径
仅限Commerce?
工作流类型
dev/front_end_development_workflow/type
允许符号链接
dev/template/allow_symlink
缩小Html
dev/template/minify_html
为店面启用模板路径提示
dev/debug/template_hints_storefront
为管理员启用模板路径提示
dev/debug/template_hints_admin
将块名称添加到提示
dev/debug/template_hints_blocks
记录到文件
dev/debug/debug_logging
记录到syslog
dev/syslog/syslog_logging
已为店面启用
dev/translate_inline/active
为管理员启用
dev/translate_inline/active_admin
合并JavaScript文件
dev/js/merge_files
启用JavaScript捆绑
dev/js/enable_js_bundling
缩小JavaScript文件
dev/js/minify_files
翻译策略
dev/js/translate_strategy
将JS错误记录到会话存储
dev/js/session_storage_logging
合并CSS文件
dev/css/merge_css_files
缩小CSS文件
dev/css/minify_files
图像适配器
dev/image/default_adapter
签署静态文件
dev/static/sign
异步索引
dev/grid/async_indexing
缓存用户定义的属性
dev/caching/cache_user_defined_attributes
recommendation-more-help
386822bd-e32c-40a8-81c2-ed90ad1e198c