{
"enable_gzip": 0, // 0: use global config; 1: enable; 2: disable
"enable_websocket": false,
"proxy_cache_revalidate": 0, // 0: use global config; 1: enable; 2: disable
"client_max_body_size": 100,
"client_max_body_size_unit": "m", // unit: k/m
"proxy_cache_use_stale": ["error", "timeout", "invalid_header", "updating", "http_500", "http_502", "http_503", "http_504", "http_403", "http_404", "http_429"],
"limiter": {
"check_post_args_type": true,
"max_uri_args": 100,
"max_post_args": 100,
"max_req_headers": 100
},
"access_log": {
"format": 1, // format id from global log format
"filename": "access.log"
},
"proxy_recursion": {
"enable": 1, // 0: use the global configuration; 1: enable; 2: disable
"max_depth": 10 // max proxy recursive depth of a request, exceeding this will be reported with an error and a response of '502 Bad Gateway'
}
}