34 lines
1007 B
Nginx Configuration File
34 lines
1007 B
Nginx Configuration File
worker_processes auto;
|
|
pid /tmp/nginx.pid;
|
|
error_log /dev/stderr warn;
|
|
|
|
events {
|
|
worker_connections 2048;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
server_tokens off;
|
|
|
|
log_format safe_json escape=json
|
|
'{"time":"$time_iso8601","request_id":"$request_id","remote_addr":"$remote_addr",'
|
|
'"host":"$host","method":"$request_method","uri":"$uri","status":$status,'
|
|
'"bytes":$body_bytes_sent,"duration":$request_time,'
|
|
'"upstream_status":"$upstream_status","upstream_time":"$upstream_response_time"}';
|
|
access_log /dev/stdout safe_json;
|
|
|
|
limit_req_status 429;
|
|
limit_req_zone $binary_remote_addr zone=bitrix_webhooks:10m rate=30r/m;
|
|
limit_conn_zone $binary_remote_addr zone=per_ip:10m;
|
|
|
|
client_body_temp_path /tmp/client_body;
|
|
proxy_temp_path /tmp/proxy;
|
|
client_header_timeout 10s;
|
|
client_body_timeout 15s;
|
|
keepalive_timeout 30s;
|
|
send_timeout 30s;
|
|
|
|
include /etc/nginx/conf.d/10-vm2.conf;
|
|
}
|