# Proxy Response Buffers
# Buffer for upstream response header. 8K is required as upstream request uri is used as cache key
# which can be big in case of concat requests
proxy_buffer_size ${NGX_LD_PROXY_BUFFER_SIZE}; # NGINX default is 4K
proxy_max_temp_file_size ${NGX_LD_MAX_TEMP_FILE_SIZE}; # NGINX default is 1024m

# Livedata rate limits
limit_conn livedatahttp1connperip ${NGX_LD_HTTP1_CONN_LIMIT};
limit_conn livedatahttp2connperip ${NGX_LD_HTTP2_CONN_LIMIT};
limit_req zone=livedataratelimit burst=${NGX_LD_REQUEST_BURST_LIMIT} nodelay;

# referer_hash_bucket_size value
referer_hash_bucket_size ${NGX_LD_REFERER_HASH_BUCKET_SIZE};

# Ensure the maximum body size for URIs is defined
client_max_body_size ${NGX_CLIENT_MAX_BODY_SIZE};
# Ensure the maximum buffer size for URIs is defined
large_client_header_buffers ${NGX_LARGE_CLIENT_HEADER_BUFFER_NUM} ${NGX_LARGE_CLIENT_HEADER_BUFFER_SIZE};

# Timeouts configuration
keepalive_timeout ${NGX_KEEPALIVE_TIMEOUT};
client_header_timeout ${NGX_CLIENT_HEADER_TIMEOUT};
client_body_timeout ${NGX_CLIENT_BODY_TIMEOUT};
