...
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ <header_name>: <header_value> } |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
disable <boolean> - do not cache content
consider_args <boolean> - use querystring while cache process
valid <json> - time of caching
} |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
2xx <string> - cache ttl for 2xx response codes
3xx <string> - cache ttl for 3xx response codes
4xx <string> - cache ttl for 4xx response codes
5xx <string> - cache ttl for 5xx response codes
force <boolean> - force cache update on clientside
} |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
expires <integer> - expire cache time
} |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
disable <boolean> - disable cors (default: false)
domains <list of strings> - list of allowed domains
headers <list of strings> - list of secure request headers (Accept, Accept-Language, Content-Type, Content-Language are allowed by default)
expose <list of strings> - list of upper level API accessible headers (Cache-Control, Content-Language, Content-Type, Expires, Last-Modified, Pragma are allowed by default)
methods <list of strings> - list of safe methods (GET, HEAD, POST are allowed by default)
max_age <integer> - preflight request response lifetime
credentials <boolean> - set an Access-Control-Allow-Credentials header
} |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
brotli <boolean> - use data compression format Brotli
gzip <boolean> - use data compression format Gzip (default: true)
} |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
geo <list> - list of rules for limitation by countries and regions
ip <list> - list of rules for limitation by ip addresses
referer <list> - list of rules for limitation by referer
useragent <list> - list of rules for limitation by useragent
} |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[{
default_action <string> - "allow" or "deny"
exclude <list> - list of exclusions
times <list> - list of time intervals
}] |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[{
start <string> - start of time interval in ISO 8601-1:2019 extended format or null
end <string> - end of time interval in ISO 8601-1:2019 extended format or null
}] |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[{
country <string> - country code in ISO 3166-1 alpha-2
region <string> - region code in ISO 3166-2 or null
action <string> - "deny" or "allow"
}] |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[{
referer <string> - domain name or regular expression
}] |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[{
ip <string> - IP address to exclude in CIDR notation
}] |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[{
useragent <string> - user agent or regular expression
}] |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
key <string> - path to content: locations params <json>
} |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
headers <json> - like global section
cache <json> - like global section
client_cache <json> - like global section
auth <json> - 💲 like global section
cors <json> - like global section
compress <json> - 💲 like global section
ioss <boolean> - 💲 like global section
limitations <json> - 💲 like global section
packaging <json> - like global section
} |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
<format> <json> - options for the video <format> from the list: mp4
} |
Блок кода | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
output_protocols <list of strings> - list of formats in which the video will be distributed (HLS, MPEG-DASH)
} |