Skip to content

Instantly share code, notes, and snippets.

@45sound

45sound/hls Secret

Created September 4, 2015 19:25
Show Gist options
  • Save 45sound/0ed2d8f971314facf72c to your computer and use it in GitHub Desktop.
Save 45sound/0ed2d8f971314facf72c to your computer and use it in GitHub Desktop.
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www;
location /hls {
access_log off;
log_not_found off;
expires 30d;
add_header Access-Control-Allow-Origin *;
hls;
hls_fragment 2s;
hls_buffers 100 100m;
hls_mp4_buffer_size 1m;
hls_mp4_max_buffer_size 5m;
root /var/www;
}
error_page 500 502 503 504 /50x.html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment