Skip to content

Instantly share code, notes, and snippets.

@ilyabrin
Created February 25, 2021 14:24
Show Gist options
  • Save ilyabrin/de740104e90d860a58113009d8f42473 to your computer and use it in GitHub Desktop.
Save ilyabrin/de740104e90d860a58113009d8f42473 to your computer and use it in GitHub Desktop.
Nginx basic video streaming config
# /etc/nginx/nginx.conf
rtmp {
server {
listen 1935;
chunk_size 4096;
buflen 2s;
application live {
live on;
record off;
hls on;
hls_nested on;
hls_fragment 3;
hls_playlist_length 60;
hls_continuous on;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment