Resources
  • 动态与公告
    • 产品动态
    • Security Announcement
    • Announcements
  • TEO 政策
    • 隐私政策
    • 数据处理和安全协议
  • 联系我们
  • 词汇表
  • 常见问题
    • 产品特性相关问题
    • 域名服务相关问题
    • Domain Configuration FAQs
    • 站点加速相关问题
    • 数据与日志相关问题
    • 安全防护相关问题
    • EdgeOne 4XX/5XX状态码排查指南
  • AI Resources and Terraform
    • EdgeOne Skill Introduction and Usage Guide
    • Overview
    • Installing and Configuring Terraform
  • General Reference
    • Configuration Syntax
      • Overview
      • Configuration Group Syntax Explanation
      • Condition
      • Variables
    • Request and response behavior
      • Processing order
      • Default HTTP Headers of Origin-Pull Requests
      • Default HTTP Response Headers
      • HTTP Restrictions
    • Country/region and Corresponding Codes
  • Related Agreements
    • Service Level Agreement
    • Origin Protection Enablement Conditions of Use

Overview

配置语法是一套基于 JSON 的标准化格式,用于定义、导出和导入站点的各项配置。
版本管理​​:通过该语法可对比不同版本间的配置差异,并快速回滚至历史版本。用户可在版本历史中直接查看 JSON 格式的变更详情,也可通过编辑 JSON 文本创建新版本,实现对配置的精准调整。
配置导入导出​​:用户可依照此语法编写或修改 JSON 配置文件,实现在不同站点间快速复制配置、批量更新配置或恢复原有配置。

功能模块配置示例

控制台上各功能模块拥有独立的配置语法格式。在查阅以下示例前,建议您先熟悉配置语法的核心组成部分。
​若查看完整的配置参数说明,请参见 配置组语法说明
语法示例
{
"FormatVersion": "1.0", // 配置格式版本
"ZoneConfig": { //站点级配置,包含「站点加速」中所有配置项
......
},
"Rules": [ //规则级配置,包含「规则引擎」中所有规则
{
"RuleName": "test",
"Branches": [
{
"Condition": "${http.request.host} in ['example.com']",
"Actions": [
...... //规则操作列表
]
}
]
}
],
"WebSecurity": { // Web 安全配置根对象
"ZoneDefaultPolicy": { // 默认(全局)策略
......
},
"HostPolicy": [ // 域名级防护策略
......
],
"Templates": [ // 防护策略模板
......
]
}
}