Skip to content

Instantly share code, notes, and snippets.

@tonytan4ever
Created August 20, 2015 14:54
Show Gist options
  • Save tonytan4ever/f36136e96624db21203c to your computer and use it in GitHub Desktop.
Save tonytan4ever/f36136e96624db21203c to your computer and use it in GitHub Desktop.
{
"name": "my_service_name",
"domain_list": [{"domain": "www.mywebsite.com", "protocol": "http"},
{"domain": "blog.mywebsite.com", "protocol": "http"}],
"flavor": "cdn",
"origin_list": [{
"origin": "myorigin.com",
"port": 80,
"ssl": false,
"rules": [
{
"name" : "default",
"request_url" : "/*"
}],
"hostheadertype": "custom",
"hostheadervalue": "www.customweb.com"
}],
"caching_list": [
{
"name": "default",
"ttl": 3600,
"rules": [
{
"name" : "default",
"request_url" : "/*"
}
]
},
{
"name": "home",
"ttl": 1200,
"rules": [
{
"name" : "index",
"request_url" : "/index.htm"
}
]
}
],
"restrictions_list": [
{
"name": "test",
"type": "whitelist",
"rules": [
{
"name": "only me",
"referrer": "www.mywebsite.com",
"request_url" : "/*"
},
{
"name": "only 1234",
"client_ip": "1.2.3.4",
"request_url" : "/*"
}
]}
],
"log_delivery": {
"enabled": false
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment