Initial commit
This commit is contained in:
@@ -0,0 +1,161 @@
|
||||
33 项高级配置,域名删除需求
|
||||
|
||||
## 沟通记录
|
||||
|
||||
1、接口暂不支持直播域名删除。(接口已做校验)
|
||||
|
||||
2、接口产品测希望支持 Esop 和 Cache+ 源域名。技术中台和移动云不考虑。
|
||||
|
||||
## Esop 源
|
||||
|
||||
点播
|
||||
|
||||
定制化
|
||||
|
||||
已按照 esop 运营单删除回调处理域名
|
||||
|
||||
自助
|
||||
|
||||
Esop 源是否不存在自助域名
|
||||
|
||||
## Cache+ 源
|
||||
|
||||
点播
|
||||
|
||||
定制化
|
||||
|
||||
自助
|
||||
|
||||
管道化下发,蓝鲸配管回调
|
||||
|
||||
## 开发临时记录
|
||||
|
||||
cache+、Esop 工单删除入口
|
||||
|
||||
/configManage/domainOperate
|
||||
|
||||
cache+ 自服务流程
|
||||
|
||||
com.cmcc.cdn.platform.selfservice.service.impl.DeleteDomainServiceImpl#createDomainDeleteOrder
|
||||
|
||||
如果是未下发的同以上操作。
|
||||
|
||||
生成工单
|
||||
|
||||
```java
|
||||
@CachePut(value = "all_presice_domain_cpInfo",key = "'all_presiceDomain_cpInfo'",cacheManager = "30MinutesCacheManager")
|
||||
public Map<String,List<String>> updateAllPresiceDomainAndCpIdName(Map<String,List<String>> map){
|
||||
return map;
|
||||
}
|
||||
|
||||
@CachePut(value = "all_extensive_domain_cpInfo",key = "'all_extensiveDomain_cpInfo'",cacheManager = "30MinutesCacheManager")
|
||||
public Map<String,List<String>> updateAllExtensiveDomainAndCpIdName(Map<String,List<String>> map){
|
||||
return map;
|
||||
}
|
||||
|
||||
@CachePut(value = "all_cp_precise_domains",key = "'all_cp_precieDomains'",cacheManager = "30MinutesCacheManager")
|
||||
public Map<String,List<String>> updateAllCpPreciseDomain(Map<String,List<String>> map){
|
||||
return map;
|
||||
}
|
||||
|
||||
@CachePut(value = "all_cp_extrensive_domains",key = "'all_cp_extensiveDomains'",cacheManager = "30MinutesCacheManager")
|
||||
public Map<String,List<String>> updateAllCpExtensiveDomain(Map<String,List<String>> map){
|
||||
return map;
|
||||
}
|
||||
|
||||
@CachePut(value = "all_cpid_cpname",key = "'all_cpid_cpname'",cacheManager = "30MinutesCacheManager")
|
||||
public Map<String,String> updateCpIdAndCpName(Map<String,String> map){
|
||||
return map;
|
||||
}
|
||||
|
||||
@CacheEvict(value = {"domains", "cps", "cpByUser", "allCpByUser"}, allEntries = true, cacheManager = "deleteCachaManager")
|
||||
@CacheRemove(value="all_cpid_flush_*")
|
||||
public void clearDomainCacheAndEpCache() {
|
||||
}
|
||||
```
|
||||
|
||||
com.cmcc.cdn.platform.selfservice.domainobject.domainconfig.DomainTicketDeleteCallbackState#delete
|
||||
|
||||
管道化下方的回调
|
||||
|
||||
com.cmcc.cdn.platform.selfservice.controller.pm.PmPipeCallbackController#addBpmContents
|
||||
|
||||
## 参考记录
|
||||
|
||||
移动云
|
||||
|
||||
com.cmcc.cdn.platform.selfservice.service.impl.DomainDeleteTrancServiceImpl#deleteDomainFromYdy
|
||||
|
||||
配管和 bpm 回调均以此方法为主
|
||||
|
||||
大哥大哥,需要帮助。
|
||||
|
||||
我在做 33 项配置需求的企业删除接口。要兼容从这个接口删除 cache+ 和 esop 的域名。我先把现在运营单的删除逻辑过了一遍。
|
||||
|
||||
主要是 bpm 回调后和比较特殊的 cache+ 自助配管回调后在 mq 中执行删除动作。
|
||||
|
||||
我感觉主要就是
|
||||
|
||||
1、删除信安信息
|
||||
|
||||
2、解绑证书
|
||||
|
||||
3、删除订阅日志
|
||||
|
||||
4、注销话单(如果是 ESOP 或者三方的会执行这步)
|
||||
|
||||
5、把平台的一些表删除一下(这里直接用了一个公用的 deleteDomainFromIbs 方法)
|
||||
|
||||
还有什么需要注意的吗?
|
||||
|
||||
1、解除域名与运营经理绑定关系(存在)
|
||||
|
||||
2、域名下不能有未完成的工单(已处理)
|
||||
|
||||
3、域名不能是中间状态
|
||||
|
||||
4、域名删除后需要在 domain_delete_record 表记录(存在)
|
||||
|
||||
```sql
|
||||
-- 域名查找
|
||||
select ssdc.domain, ssdc.state, ssdc.product, ssdc.tenant_id, ta.salt, ta.tenant_key
|
||||
from self_service_domain_config ssdc
|
||||
join enterprise_info ei on ssdc.tenant_id = ei.enterprise_id
|
||||
join domain_approve_relation dar on ssdc.domain = dar.domain
|
||||
join tenant_authentication ta on ta.tenant_id = ssdc.tenant_id
|
||||
where ssdc.state = 6
|
||||
and ssdc.product != 5
|
||||
and ei.source = 'BSS'
|
||||
and ssdc.config_crt_id IS NOT NULL
|
||||
order by ssdc.id desc;
|
||||
```
|
||||
|
||||
```sql
|
||||
-- 查看cpid
|
||||
select ssdc.state,ei.enterprise_cp_id
|
||||
from self_service_domain_config ssdc
|
||||
join enterprise_info ei on ssdc.tenant_id = ei.enterprise_id
|
||||
where domain = 'www.test145825.com';
|
||||
```
|
||||
|
||||
## 测试用例:
|
||||
|
||||
### 删除 esop 的域名
|
||||
|
||||
停用中(状态值 6)
|
||||
|
||||
单个:删除成功
|
||||
|
||||
测试一个有工单的
|
||||
|
||||
关注主任务表:
|
||||
|
||||
关注子任务表:
|
||||
|
||||
回调后的域名表:
|
||||
|
||||
单个:删除失败
|
||||
|
||||
# 测试用例
|
||||
|
||||
删除
|
||||
@@ -0,0 +1,375 @@
|
||||
# 问题记录
|
||||
|
||||
set_req_header 查询没有响应 option(已增加)
|
||||
|
||||
关于 option 字段,应理解为字段,不应进行配置管理
|
||||
|
||||
# 沟通记录
|
||||
|
||||
1、调用接口异常传给配管的是全量包含 null,修改为只下发此次任务的相关配置。
|
||||
|
||||
通过将参数透传,追加参数处理。
|
||||
|
||||

|
||||
|
||||
2、调用接口失败的任务将不再被回调
|
||||
|
||||

|
||||
|
||||
3、自定义页面,中兴平面异常。
|
||||
|
||||
# 高级
|
||||
|
||||
## back_source_host(回源 host 配置)
|
||||
|
||||
请求参数
|
||||
|
||||
```json
|
||||
"domain": "douyinvodtest.jingpintest.xyz",
|
||||
// 回源host配置
|
||||
"back_source_host": {
|
||||
"enable": true,
|
||||
"host": "douyinvodtest.back.com"
|
||||
}
|
||||
```
|
||||
|
||||

|
||||
|
||||
数据库结果
|
||||
|
||||

|
||||
|
||||
查询接口结果
|
||||
|
||||

|
||||
|
||||
关闭
|
||||
|
||||
## block_loop(分片回源信息)
|
||||
|
||||
下发参数
|
||||
|
||||
{"block_loop":true,"domain":"douyinvodtest.jingpintest.xyz","plain":[0,1,2,4],"task_id":"5141cb96546d4034a07565b170e86e50"}
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
回调后数据库结果
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 有歧义 -set_req_header(自定义回源 HTTP 请求头)
|
||||
|
||||
下发报文
|
||||
|
||||

|
||||
|
||||
数据库体现
|
||||
|
||||

|
||||
|
||||
查询状况(需要补充 option)
|
||||
|
||||

|
||||
|
||||
option 为 1
|
||||
|
||||

|
||||
|
||||
查询
|
||||
|
||||

|
||||
|
||||
## backsource_redirection_status(回源重定向跟随)
|
||||
|
||||
下发参数
|
||||
|
||||

|
||||
|
||||
查询接口
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## cache(缓存类型与过期时间信息)
|
||||
|
||||
下发报文
|
||||
|
||||

|
||||
|
||||
查询结果
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
修改场景
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
数据库
|
||||
|
||||

|
||||
|
||||
特殊场景
|
||||
|
||||

|
||||
|
||||
配管侧查询 cache 直接消失(正常)
|
||||
|
||||
ibs 库正常
|
||||
|
||||

|
||||
|
||||
# 基础
|
||||
|
||||
# 删除
|
||||
|
||||
# 查询
|
||||
|
||||
# 联调记录转存 excle
|
||||
|
||||
1、url_parameter 子开关是否删除配置问题
|
||||
|
||||
2、ip_black_list 涉及 ibs 查询接口 ipList 不回显问题
|
||||
|
||||
3、referrer_anti_stealing_link 配管字段调整周一再测
|
||||
|
||||
4、custom_error_page 中兴失败
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
均开启
|
||||
|
||||

|
||||
|
||||
查询
|
||||
|
||||
```json
|
||||
{
|
||||
"back_rewrite_uri": {
|
||||
"detail": [
|
||||
{
|
||||
"rewrite_path": "/aa",
|
||||
"target_path": "/aa/$1/$2.jpg"
|
||||
},
|
||||
{
|
||||
"rewrite_path": "bb",
|
||||
"target_path": "/bb/$1/$2.jpg"
|
||||
}
|
||||
],
|
||||
"enable": true
|
||||
},
|
||||
"back_source_host": {
|
||||
"enable": true,
|
||||
"host": "douyinvodtest.back.com"
|
||||
},
|
||||
"backsource_redirection_status": false,
|
||||
"base": {
|
||||
"cdn_type": "web",
|
||||
"cname": "douyinvodtest.jingpintest.xyz.c8c10c27.d.cdn.10086.cn",
|
||||
"created_time": "2023-07-28T17:17:20+08:00",
|
||||
"crt_name": "",
|
||||
"customerRemarks": {
|
||||
"portParam": {
|
||||
"http": 80,
|
||||
"https": 443
|
||||
}
|
||||
},
|
||||
"domain": "douyinvodtest.jingpintest.xyz",
|
||||
"ip_priority": "ipv6",
|
||||
"ipv6_on_off": false,
|
||||
"protocol": 2,
|
||||
"provinces": [],
|
||||
"service_provider": "0",
|
||||
"sources": [
|
||||
{
|
||||
"back_addr": "192.23.34.88:443",
|
||||
"back_protocol": 2,
|
||||
"primary": true,
|
||||
"type": "ip"
|
||||
}
|
||||
],
|
||||
"state": "online",
|
||||
"unique_id": "20230808171383--662a-49f8-aa8d-7c6fa093f548"
|
||||
},
|
||||
"block_loop": false,
|
||||
"brotli_status": false,
|
||||
"cache": {
|
||||
"detail": [
|
||||
{
|
||||
"content": "",
|
||||
"followsource": 1,
|
||||
"ttl": 5,
|
||||
"type": 2,
|
||||
"unit": "day",
|
||||
"weight": 3
|
||||
},
|
||||
{
|
||||
"content": "abc/file01/2.png",
|
||||
"followsource": 0,
|
||||
"ttl": 2,
|
||||
"type": 3,
|
||||
"unit": "week",
|
||||
"weight": 3
|
||||
},
|
||||
{
|
||||
"content": "/test/index.html",
|
||||
"followsource": 0,
|
||||
"ttl": 0,
|
||||
"type": 4,
|
||||
"unit": "minute",
|
||||
"weight": 4
|
||||
},
|
||||
{
|
||||
"content": "401,404",
|
||||
"followsource": 0,
|
||||
"ttl": 0,
|
||||
"type": 5,
|
||||
"unit": "second",
|
||||
"weight": 96
|
||||
}
|
||||
],
|
||||
"enable": true
|
||||
},
|
||||
"custom_error_page": {
|
||||
"detail": [
|
||||
{
|
||||
"link": "https://abc.aa/error.html",
|
||||
"mode": 0,
|
||||
"type": 0
|
||||
},
|
||||
{
|
||||
"link": "https://abc.bb/error.html",
|
||||
"mode": 1,
|
||||
"type": 1
|
||||
},
|
||||
{
|
||||
"link": "https://abc.cc/error.html",
|
||||
"type": 2
|
||||
}
|
||||
],
|
||||
"enable": true
|
||||
},
|
||||
"gzip_status": false,
|
||||
"http2_status": false,
|
||||
"https_status": {
|
||||
"detail": {
|
||||
"https_force": false,
|
||||
"https_tls_version": [
|
||||
"tls1.0",
|
||||
"tls1.1",
|
||||
"tls1.2",
|
||||
"tls1.3"
|
||||
]
|
||||
},
|
||||
"enable": true
|
||||
},
|
||||
"ip_black_list": {
|
||||
"enable": true,
|
||||
"ip_list": [
|
||||
"2.1.1.1",
|
||||
"2:1::1:2/24"
|
||||
]
|
||||
},
|
||||
"referrer_anti_stealing_link": {
|
||||
"detail": {
|
||||
"domain_list": [
|
||||
"*.10086.com",
|
||||
"www.10011186.co",
|
||||
"www.10011187.co"
|
||||
],
|
||||
"list_type": 1,
|
||||
"referrer_null": false
|
||||
},
|
||||
"enable": true
|
||||
},
|
||||
"set_req_header": {
|
||||
"detail": [
|
||||
{
|
||||
"option": 1,
|
||||
"type": "Sec-Fetch-Mode",
|
||||
"value": "CNTWO"
|
||||
}
|
||||
],
|
||||
"enable": true
|
||||
},
|
||||
"ua_anti_stealing_link": {
|
||||
"detail": {
|
||||
"list_type": 2,
|
||||
"ua_list": [
|
||||
"Android",
|
||||
"IE"
|
||||
],
|
||||
"ua_null": false
|
||||
},
|
||||
"enable": true
|
||||
},
|
||||
"url_anti_stealing_link": {
|
||||
"detail": {
|
||||
"auth_encrypt": "SHA1",
|
||||
"auth_key": "abc1234",
|
||||
"auth_key_back": "xyz4321",
|
||||
"auth_param": "x_signature",
|
||||
"auth_timeout": 8640,
|
||||
"auth_type": 6
|
||||
},
|
||||
"enable": true
|
||||
},
|
||||
"url_parameter": {
|
||||
"enable": false
|
||||
},
|
||||
"video_drag_status": false
|
||||
}
|
||||
```
|
||||
|
||||
域名删除参数下发
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
话单模块儿
|
||||
|
||||
```log
|
||||
2023-08-11 10:30:49 [,,,,] [http-nio-8080-exec-2] INFO com.cmcc.cdn.platform.selfservice.service.aspire.impl.callback.DomainDeleteServiceImpl 184 onSuccessCallBack - 【删除加速域名,配管回调成功】———>开始注销话单,域名为:tianzhuo339300559.komect.com
|
||||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.selfservice.service.impl.BBossAndDssInteractiveServiceImpl$1 727 run - 下发话单请求参数, url:http://10.24.88.175:8030/api/ibs/dss/statement/configure/response, param:{"productInfos":[{"billingMethod":"1","businessType":"1","cancelStatus":"2","cancelTime":"20230811183049","createTime":"20230523093330","domain":"tianzhuo339300559.komect.com","enterpriseId":"ECID1684803255","enterpriseName":"测试企业-1684803255","infoType":"1","jobId":"20230523085310","productId":"1","province":"250"}]}
|
||||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.selfservice.service.impl.BBossAndDssInteractiveServiceImpl 1227 sendRequest - {"productInfos":[{"billingMethod":"1","businessType":"1","cancelStatus":"2","cancelTime":"20230811183049","createTime":"20230523093330","domain":"tianzhuo339300559.komect.com","enterpriseId":"ECID1684803255","enterpriseName":"测试企业-1684803255","infoType":"1","jobId":"20230523085310","productId":"1","province":"250"}]}
|
||||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.selfservice.service.impl.BBossAndDssInteractiveServiceImpl 1230 sendRequest - 计费话单-带宽数据获取 operate,url:http://10.24.88.175:8030/api/ibs/dss/statement/configure/response
|
||||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.common.util.HttpUtil 340 doHttpRequest2 - url:http://10.24.88.175:8030/api/ibs/dss/statement/configure/response, method:post, 返回的状态码为:200
|
||||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.common.util.HttpUtil 344 doHttpRequest2 - url:http://10.24.88.175:8030/api/ibs/dss/statement/configure/response, method:post, 返回的请求体:{"result":null,"code":200,"message":"成功"}
|
||||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.selfservice.service.impl.BBossAndDssInteractiveServiceImpl 1233 sendRequest - 计费话单-带宽数据获取 响应信息, status: 200, response:{"resp":"{\"result\":null,\"code\":200,\"message\":\"成功\"}","status":"200"}
|
||||
2023-08-11 10:30:49 [,,,,] [Thread-31] INFO com.cmcc.cdn.platform.selfservice.service.impl.BBossAndDssInteractiveServiceImpl$1 771 run - 更新试用域名计费信息, [],[tianzhuo339300559.komect.com],[tianzhuo339300559.komect.com]
|
||||
2023-08-11 10:30:49 [,,,,] [http-nio-8080-exec-2] INFO com.cmcc.cdn.platform.selfservice.dao.RedisCacheRepository 221 clearDomainsApi - clearDomainsApi
|
||||
|
||||
```
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
@@ -0,0 +1,304 @@
|
||||
| 请求参数 | selfserviceDomainConfig 对应的属性 | 名称 |
|
||||
| ----------------------------- | --------------------------------------------- | ----------------- |
|
||||
| back_source_host | self_service_domain_config(back_host) | 回源 host 配置 |
|
||||
| block_loop | self_service_domain_config(block_loop) | 分片回源信息 |
|
||||
| set_req_header | oms_customer_remark (loop_http_header) | 自定义回源 HTTP 请求头 |
|
||||
| set_resp_header | httpHeaderConfigs | 自定义 HTTP 响应头 |
|
||||
| backsource_redirection_status | isFollowed | 回源重定向跟随 |
|
||||
| cache | cacheType | 缓存类型与过期时间信息 |
|
||||
| custom_error_page | customPages | 自定义页面信息 |
|
||||
| http2_status | omsCustomerRemark.http2 | 支持 HTTP/2 的协议配置 |
|
||||
| video_drag_status | videoDrag | 拖拽播放信息 |
|
||||
| gzip_staus | Encryption EncryptionGrade | 开启智能压缩功能 |
|
||||
| brotli_status | omsCustomerRemarkPO.brotliSwitch | 开启 Brotli 压缩功能 |
|
||||
| referrer_anti_stealing_link | refererAntiStealingLink | Referer 黑白名单 |
|
||||
| ip_black_list | domainConfigBlackList | IP 黑名单; 指定 IP、IP 段来设置 |
|
||||
| url_parameter | 新 | URL 参数缓存策略 |
|
||||
| https_status | 新,但是要与 protocol 有关,只有 1、2 时才可以 | HTTPS 高级选项 |
|
||||
| url_anti_stealing_link | 新 | URL 防盗链参数 |
|
||||
| ua_anti_stealing_link | omsCustomerRemark.uaBlackAndWhite uaBlackList | UA 防盗链参数 |
|
||||
| back_rewrite_uri | 新 | 回源 URL 改写 |
|
||||
|
||||
SelfServiceDomainAdvancedConfigDao
|
||||
|
||||
SelfServiceDomainAdvancedConfigPO
|
||||
|
||||
AdvancedConfigEnum
|
||||
|
||||
```sql
|
||||
-- set_req_header
|
||||
select http_header_config.* from http_header_config
|
||||
inner join domain_config_http_header_config on http_header_config.id = domain_config_http_header_config.http_header_config_id
|
||||
inner join self_service_domain_config ssdc on domain_config_http_header_config.domain_config_id = ssdc.id
|
||||
where domain='www.zphtest202307102002.com';
|
||||
|
||||
# backsource_redirection_status
|
||||
select is_followed from self_service_domain_config where domain='www.zphtest202307102002.com';
|
||||
|
||||
-- set_resp_header
|
||||
select loop_http_header from oms_customer_remark left join self_service_domain_config ssdc on oms_customer_remark.id = ssdc.oms_customer_remark_id
|
||||
where ssdc.domain='www.zphtest202307102002.com';
|
||||
|
||||
-- cache
|
||||
select cache_type.* from cache_type
|
||||
inner join domain_config_cache_type dcct on cache_type.id = dcct.cache_type_id
|
||||
inner join self_service_domain_config ssdc on dcct.self_service_domain_config_id = ssdc.id
|
||||
where domain='www.zphtest202307102002.com';
|
||||
|
||||
-- custom_error_page
|
||||
select custom_page.* from custom_page
|
||||
inner join domain_config_custom_page dccp on custom_page.id = dccp.custom_page_id
|
||||
inner join self_service_domain_config ssdc on dccp.domain_config_id = ssdc.id
|
||||
where domain='www.zphtest202307102002.com';
|
||||
|
||||
|
||||
-- https2
|
||||
select http2 from oms_customer_remark
|
||||
join self_service_domain_config ssdc on oms_customer_remark.id = ssdc.oms_customer_remark_id
|
||||
where domain='www.zphtest202307102002.com';
|
||||
|
||||
-- video_drag_status 拖拽播放信息
|
||||
select video_drag
|
||||
from self_service_domain_config
|
||||
where domain = 'www.zphtest202307102002.com';
|
||||
|
||||
-- gzip_status 智能压缩
|
||||
select encryption, encryption_grade from self_service_domain_config
|
||||
inner join oms_customer_remark ocr on self_service_domain_config.oms_customer_remark_id = ocr.id
|
||||
where domain='www.zphtest202307102002.com';
|
||||
|
||||
-- brotli_status 开启broli压缩功能
|
||||
select brotli_switch from oms_customer_remark
|
||||
inner join self_service_domain_config ssdc on oms_customer_remark.id = ssdc.oms_customer_remark_id
|
||||
where domain='www.zphtest202307102002.com';
|
||||
|
||||
-- Referer黑白名单
|
||||
select referer_anti_stealing_link.*, rbwl.* from referer_anti_stealing_link
|
||||
inner join referer_anti_stealing_black_white_list on anti_stealing_link_id = referer_anti_stealing_link.id
|
||||
inner join referer_black_white_list rbwl on referer_anti_stealing_black_white_list.black_white_id = rbwl.id
|
||||
inner join self_service_domain_config ssdc on referer_anti_stealing_link.id = ssdc.referer_anti_stealing_link_id
|
||||
where ssdc.domain='www.zphtest202307102002.com';
|
||||
|
||||
-- ip和白名单
|
||||
select domain_ip_black_list.* from domain_ip_black_list
|
||||
inner join domain_config_black_list dcbl on domain_ip_black_list.id = dcbl.black_id
|
||||
inner join self_service_domain_config ssdc on dcbl.domain_config_id = ssdc.id
|
||||
where domain='www.zphtest202307102002.com';
|
||||
|
||||
|
||||
-- url_parameter\https_status\url_anti_stealing_link\ua_anti_stealing_link
|
||||
select * from self_service_domain_advanced_config where domain='www.zphtest202307102002.com';
|
||||
|
||||
|
||||
-- ua防盗链
|
||||
select ua_black_list, ua_black_and_white, ua_null from oms_customer_remark
|
||||
join self_service_domain_config ssdc on oms_customer_remark.id = ssdc.oms_customer_remark_id
|
||||
where domain='www.zphtest202307102002.com';
|
||||
|
||||
```
|
||||
|
||||
### 新增/修改高级配置接口路径和参数
|
||||
|
||||
/api/config/action?commandType=manageDomainAdvancedConfig&version=1
|
||||
|
||||
```json
|
||||
{
|
||||
"domain": "www.zphtest202307102002.com",
|
||||
// "referrer_anti_stealing_link": {
|
||||
// "enable": true,
|
||||
// "detail": {
|
||||
// "list_type": 2,
|
||||
// "referrer_null": true,
|
||||
// "domain_list": [
|
||||
// "*.10086.com",
|
||||
// "www.10011186.co"
|
||||
// ]
|
||||
// }
|
||||
// },
|
||||
//分片回源信息
|
||||
// "block_loop": true
|
||||
//回源host
|
||||
// "back_source_host": {
|
||||
// "enable": false,
|
||||
// "host": "www.baidu.com"
|
||||
// }
|
||||
//请求头设置
|
||||
// "set_req_header": {
|
||||
// "enable": true,
|
||||
// "detail": [
|
||||
// {
|
||||
// "type": "Content-Language2",
|
||||
// "value": "CN",
|
||||
// "option": 1 //0 设置 1 删除
|
||||
// },
|
||||
// {
|
||||
// "type": "Sec-Fetch-Mode",
|
||||
// "value": "CN",
|
||||
// "option": 0 //0 设置 1 删除
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// 响应头
|
||||
// "set_resp_header": {
|
||||
// "enable": true,
|
||||
// "detail": [
|
||||
// {
|
||||
// "type": "Sec-Fetch-Dest",
|
||||
// "value": "text/xml",
|
||||
// "option": 0 //0 设置 1 删除
|
||||
// },
|
||||
// {
|
||||
// "type": "Sec-Fetch-Mode",
|
||||
// "value": "text/xml",
|
||||
// "option": 0 //0 设置 1 删除
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
//回源重定向跟随
|
||||
// "backsource_redirection_status": "aaa",
|
||||
//缓存类型与过期时间信息
|
||||
// "cache": {
|
||||
// "enable": true,
|
||||
// "detail": [
|
||||
// {
|
||||
// "type": 0,
|
||||
// "content": "/abc/def/",
|
||||
// "ttl": 10,
|
||||
// "unit": "day",
|
||||
// "weight": 1,
|
||||
// "followsource": 1
|
||||
// },
|
||||
// {
|
||||
// "type": 0,
|
||||
// "content": "jpg,txt",
|
||||
// "ttl": 1,
|
||||
// "unit": "hour",
|
||||
// "weight": 1
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// 自定义页面
|
||||
// "custom_error_page": {
|
||||
// "enable": false,
|
||||
// "detail": [
|
||||
// {
|
||||
// "type": 1,
|
||||
// // "mode": ,
|
||||
// "link": "https://xxxx.xx/error.html"
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
//http2_status 支持http2协议
|
||||
// "http2_status": true,
|
||||
//video_drag_status 拖拽播放信息
|
||||
// "video_drag_status": true
|
||||
//gzip_status 要锁参数
|
||||
// "gzip_status":false
|
||||
// refer防盗链
|
||||
// "referrer_anti_stealing_link": {
|
||||
// "enable": true,
|
||||
// "detail": {
|
||||
// "list_type": 1,
|
||||
// "referrer_null": true,
|
||||
// "domain_list": [
|
||||
// "*.10086.com",
|
||||
// "www.10086.co"
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
//ip黑白名单
|
||||
// "ip_black_list": {
|
||||
// "enable": true,
|
||||
// "ip_list": [
|
||||
// "1:1::1:0/21",
|
||||
// "1.1.1.0/24",
|
||||
// "10.1.1.20-10.1.1.25"
|
||||
// ]
|
||||
// },
|
||||
// url参数+缓存
|
||||
// "url_parameter": {
|
||||
// "enable": true,
|
||||
// "shared_cache": {
|
||||
// "enable": true,
|
||||
// "target_domain": "video.baidu.com"
|
||||
// },
|
||||
// "detail": {
|
||||
// "enable":true,
|
||||
// "type": 2,
|
||||
// "content": "param1;param2;param3;param4"
|
||||
// }
|
||||
// },
|
||||
// https 高级配置
|
||||
// "https_status": {
|
||||
// "enable": true,
|
||||
// "detail": {
|
||||
// "https_force": true,
|
||||
// "https_tls_version": [
|
||||
// "tls1.0",
|
||||
// "tls1.1",
|
||||
// "tls1.2",
|
||||
// "tls1.3"
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
// // url 防盗链
|
||||
// "url_anti_stealing_link": {
|
||||
// "enable": false,
|
||||
// "detail": {
|
||||
// "auth_type": 1,
|
||||
// "auth_key": "abc1234",
|
||||
// "auth_key_back": "xyz4321",
|
||||
// "auth_param": "x-signature",
|
||||
// "auth_encrypt": "HAMC_SHA1",
|
||||
// "auth_timeout": 86400
|
||||
// }
|
||||
// },
|
||||
// ua 防盗链
|
||||
// "ua_anti_stealing_link": {
|
||||
// "enable": true,
|
||||
// "detail": {
|
||||
// "list_type": 1,
|
||||
// "ua_list": [
|
||||
// "iphone",
|
||||
// "android"
|
||||
// ],
|
||||
// "ua_null":true
|
||||
// }
|
||||
// },
|
||||
// ua 防盗链
|
||||
"back_rewrite_uri": {
|
||||
"enable": true,
|
||||
"detail": [
|
||||
{
|
||||
"rewrite_path": "",
|
||||
"target_path": "abcdefghabcdefh"
|
||||
},
|
||||
{
|
||||
"rewrite_path": "bb",
|
||||
"target_path": "cc"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### 高级配置回调接口路径和参数
|
||||
|
||||
回调 url:/action?commandType=manageDomainCallBack&version=1
|
||||
|
||||
```json
|
||||
{
|
||||
"domains": [
|
||||
{
|
||||
"domain": "www.zphtest202307102002.com",
|
||||
"result": 0,
|
||||
"cp_id": "83564834"
|
||||
}
|
||||
],
|
||||
"callback_type": "create",
|
||||
"task_id": "487bfb92a3414856b9a3e93003781d37",
|
||||
"plain": [
|
||||
1
|
||||
]
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user