-
-
Save 45sound/0ed2d8f971314facf72c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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