一般和進階設定路徑參考

本主題列出一般和進階組態路徑,以及 敏感值和系統特定值. 此 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
僅限商務
限制模式
general/restriction/mode
僅限商務
啟動頁面
general/restriction/http_redirect
僅限商務
登陸頁面
general/restriction/cms_page
僅限商務
HTTP回應
general/restriction/http_status
僅限商務
存放區名稱
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
VAT編號
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
Offloader標題
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中啟用驗證碼
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
僅限商務
提前排程
system/cron/staging/schedule_ahead_for
僅限商務
如果未於內執行,則已錯過
system/cron/staging/schedule_lifetime
僅限商務
歷史記錄清理間隔
system/cron/staging/history_cleanup_every
僅限商務
成功歷程記錄期限
system/cron/staging/history_success_lifetime
僅限商務
失敗歷程記錄存留期
system/cron/staging/history_failure_lifetime
僅限商務
使用個別程式
system/cron/staging/use_separate_process
僅限商務
產生排程間隔
system/cron/catalog/event/schedule_generate_every
僅限商務
提前排程
system/cron/catalog/event/schedule_ahead_for
僅限商務
如果未於內執行,則已錯過
system/cron/catalog/event/schedule_lifetime
僅限商務
歷史記錄清理間隔
system/cron/catalog/event/history_cleanup_every
僅限商務
成功歷程記錄期限
system/cron/catalog/event/history_success_lifetime
僅限商務
失敗歷程記錄存留期
system/cron/catalog/event/history_failure_lifetime
僅限商務
使用個別程式
system/cron/catalog/event/use_separate_process
僅限商務
使用個別程式
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