http

Syntax: http { ... } Default: β€” Context: main Provides the configuration file context in which the HTTP server directives are specified.

How nginx processes a TCP/UDP session

How nginx processes a TCP/UDP session A TCP/UDP session from a client is processed in successive steps called phases: Post-accept The first phase after accepting a client connection. The ngx_stream_realip_module module is invoked at this phase. Pre-access Preliminary check for access. The ngx_stream_limit_conn_module module is invoked at this phase. Access Client access limitation before actual data processing. The ngx_stream_access_module module is invoked at this phase. SSL T

How nginx processes a request

How nginx processes a request How to prevent processing requests with undefined server names Mixed name-based and IP-based virtual servers A simple PHP site configuration

hls_mp4_max_buffer_size

Syntax: hls_mp4_max_buffer_size size; Default: hls_mp4_max_buffer_size 10m; Context: http, server, location During metadata processing, a larger buffer may become necessary. Its size cannot exceed the specified size, or else nginx will return the server error 500 (Internal Server Error), and log the following message: "/some/movie/file.mp4" mp4 moov atom is too large: 12583268, you may want to increase hls_mp4_max_buffer_size

hls_mp4_buffer_size

Syntax: hls_mp4_buffer_size size; Default: hls_mp4_buffer_size 512k; Context: http, server, location Sets the initial size of the buffer used for processing MP4 and MOV files.

hls_fragment

Syntax: hls_fragment time; Default: hls_fragment 5s; Context: http, server, location Defines the default fragment length for playlist URIs requested without the β€œlen” argument.

hls_forward_args

Syntax: hls_forward_args on | off; Default: hls_forward_args off; Context: http, server, location This directive appeared in version 1.5.12. Adds arguments from a playlist request to URIs of fragments. This may be useful for performing client authorization at the moment of requesting a fragment, or when protecting an HLS stream with the ngx_http_secure_link_module module. For example, if a client requests a playlist http://example.com/hls/test.mp4.m3u8?a=1&b=2, the arguments

hls_buffers

Syntax: hls_buffers number size; Default: hls_buffers 8 2m; Context: http, server, location Sets the maximum number and size of buffers that are used for reading and writing data frames.

hls

Syntax: hls; Default: β€” Context: location Turns on HLS streaming in the surrounding location.

health_check_timeout

Syntax: health_check_timeout timeout; Default: health_check_timeout 5s; Context: stream, server Overrides the proxy_timeout value for health checks. This directive is available as part of our commercial subscription.