Config Object explaination
{
"configCategory": "string",
"configItem": "string",
"configValue": {},
"subdomainID": "string"
}
Attributes | Type | Description |
---|
configCategory | string | Used to define which category of property you are trying to config |
configItem | string | Used to define which property you are trying to config |
configValue | object | array | Used to define specific config value, different configItem will have different configValue |
subdomainID | string | Used to define which subdomain you are trying to config |
Avaliable configCategory
& configItem
combination
configCategory | configItem |
---|
CACHE | CACHE_CONTENT_TYPE | CACHE_EXTENSION | CACHE_STATUS |
HTTP | HTTP_HEADER |
HTTPS | HSTS | HTTP2 | HTTPS_STATUS | CERTIFICATE |
ORIGIN | ORIGIN_ADDRESS |
WAF | WAF_STATUS |
HYBRID_CDN | HYBRID_CDN_STATUS | TO_ORIGIN |
ACL | RATE_LIMIT | BLACK_LIST | WHITE_LIST |
Different configValue
for different configItem
CACHE_CONTENT_TYPE
{
"configValue": [
"image/gif",
"image/png",
"image/bmp",
"image/jpeg",
"text/html",
"audio/mpeg",
"audio/x-ms-wma",
"video/x-flv",
"video/mp4",
"video/x-ms-wmv",
"audio/ogg",
"video/x-msvideo",
"application/msword",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.ms-excel",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.ms-powerpoint",
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"text/plain",
"application/pdf",
"application/zip",
"application/x-msdownload",
"application/x-tar",
"image/x-icon",
"image/vnd.microsoft.icon",
"text/css",
"application/javascript",
"text/javascript",
"application/x-shockwave-flash",
"font/woff",
"application/font-woff",
"font/woff2",
"font/otf",
"font/ttf",
"font/collection",
"application/vnd.ms-fontobject"
]
}
CACHE_EXTENSION
{
"configValue": [
"gif",
"png",
"bmp",
"jpeg",
"jpg",
"html",
"htm",
"shtml",
"mp3",
"wma",
"flv",
"mp4",
"wmv",
"ogg",
"avi",
"doc",
"docx",
"xls",
"xlsx",
"ppt",
"pptx",
"txt",
"pdf",
"zip",
"exe",
"tar",
"ico",
"css",
"js",
"swf",
"woff",
"woff2",
"otf",
"ttf",
"ttc",
"eot"
]
}
CACHE_STATUS
{
"configValue": { "status": "OFF" }
}
HTTP_HEADER
{
"configValue": [
{
"headerName": "Host",
"headerValue": "255.255.255.0"
},
{
"headerName": "Access-Control-Max-Age",
"headerValue": "20000"
}
]
}
CERTIFICATE
{
"configValue": { "certificateID": 124 }
}
HSTS
{
"configValue": { "status": "ON" }
}
HTTP2
{
"configValue": { "status": "ON" }
}
HTTPS
{
"configValue": { "status": "ON" }
}
ORIGIN_ADDRESS
{
"configValue": {
"originPolicy": "FOLLOW" | "HTTPS" | "HTTP",
"httpOrigin": [{ "address": "test-src.test.com", "port": "" }],
"httpsOrigin": [{ "address": "test-src.test.com", "port": "" }]
}
}
WAF_STATUS
{
"configValue": { "status": "ON", "level": "1" | "2" | "3" }
}
HYBRID_CDN_STATUS
{
"configValue": { "status": "ON" }
}
TO_ORIGIN
{
"configValue": ["4.4.4.4"]
}
RATE_LIMIT
{
"configValue": { "value": 20, "unit": "s" | "m" }
}
BLACK_LIST
{
"configValue": ["127.0.0.1"]
}
WHITE_LIST
{
"configValue": ["127.0.0.1"]
}