云应用网站更新Nginx相关配置
POST
/product/rca/website/29/config/nginx最后修改时间: 6 个月前
请求参数
Body 参数application/json
config_scope
enum<string>
配置项目
枚举值:
domain_listruntime_dirindexrewrite_rulessl
domain_list
array[string]
域名列表
index
string
新的默认文档
rewrite_rule
string
重写规则
runtime_dir
string
新的运行目录
ssl_access_mode
enum<string>
可选
SSL访问模式,https_only: 只允许HTTPS访问,关闭http访问,http_to_https: 访问http的时候自动跳转到https, http_also: 允许http和https同时访问(在共享IP模式下是半程SSL,即雨云反代会走HTTP协议回源)
枚举值:
https_onlyhttp_to_httpshttp_also
ssl_algorithm
string
SSL算法
ssl_cert
string
HTTPS证书
ssl_is_enable
boolean
是否启用SSL
ssl_key
string
HTTPS私钥
ssl_protocol
array[string]
SSL支持的协议
示例
{
"config_scope": "ssl",
"ssl_is_enable": true,
"ssl_access_mode": "https_only",
"ssl_algorithm": "EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5",
"ssl_cert": "-----BEGIN CERTIFICATE-----\nMIIEHDCCAwSgAwIBAgISA/D4C8fdFWbbzva6XmFaJy5WMA0GCSqGSIb3DQEBCwUA\nMDIxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQD\nEwJSMzAeFw0yNDAzMjUwNTM2MjlaFw0yNDA2MjMwNTM2MjhaMBgxFjAUBgNVBAMT\nDWxvdmUuZ29hbDguY24wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARnvwxDIi/d\nOAhmeVqVwrBjHPeHu7MJAmcPPIQQHGbyH62/D6NhkCQHLYZShPV3CyZKYbQrOTLP\niWu2ejM3LGBDo4ICDzCCAgswDgYDVR0PAQH/BAQDAgeAMB0GA1UdJQQWMBQGCCsG\nAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBRmDzuo/Kwg\nb8vKn2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NVneLKYY611TR6W\nPTNlclQtgaDqw+34IL9fzLdwALduO/ZelN7kIJ+m74uyA+eitRY8kc607TkC53wl\nikfmZW4/RvTZ8M6UK+5UzhK8jCdLuMGYL6KvzXGRSgi3yLgjewQtCPkIVz6D2QQz\nCkcheAmCJ8MqyJu5zlzyZMjAvnnAT45tRAxekrsu94sQ4egdRCnbWSDtY7kh+BIm\nlJNXoB1lBMEKIq4QDUOXoRgffuDghje1WrG9ML+Hbisq/yFOGwXD9RiX8F6sw6W4\navAuvDszue5L3sz85K+EC4Y/wFVDNvZo4TYXao6Z0f+lQKc0t8DQYzk1OXVu8rp2\nyJMC6alLbBfODALZvYH7n7do1AZls4I9d1P4jnkDrQoxB3UqQ9hVl3LEKQ73xF1O\nyK5GhDDX8oVfGKF5u+decIsH4YaTw7mP3GFxJSqv3+0lUFJoi5Lc5da149p90Ids\nhCExroL1+7mryIkXPeFM5TgO9r0rvZaBFOvV2z0gp35Z0+L4WPlbuEjN/lxPFin+\nHlUjr8gRsI3qfJOQFy/9rKIJR0Y/8Omwt/8oTWgy1mdeHmmjk7j1nYsvC9JSQ6Zv\nMldlTTKB3zhThV1+XWYp6rjd5JW1zbVWEkLNxE7GJThEUG3szgBVGP7pSWTUTsqX\nnLRbwHOoq7hHwg==\n-----END CERTIFICATE-----",
"ssl_key": "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIF4vRF7CDL1XkD0+r8lDN3oxblxYxPuSWT7RCZO2DGc0oAoGCCqGSM49\nAwEHoUQDQgAEZ78MQyIv3TgIZnlalcKwYxz3h7uzCQJnDzyEEBxm8h+tvw+jYZAk\nBy2GUoT1dwsmSmG0Kzkyz4lrtnozNyxgQw==\n-----END EC PRIVATE KEY-----\n",
"ssl_protocol": [
"TLSv1.3",
"TLSv1.2",
"TLSv1.1",
"TLSv1"
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{}
最后修改时间: 6 个月前