From 22c3bc90fa5b4e9cc5e9841900232f49b0f00b40 Mon Sep 17 00:00:00 2001 From: Alf Date: Tue, 16 Feb 2021 23:20:29 -0800 Subject: [PATCH] Updating nginx configs and demo player location. --- README.md | 2 +- nginx-cuda.conf | 11 +++++++---- nginx.conf | 11 +++++++---- static/{player/index.html => player.html} | 0 4 files changed, 15 insertions(+), 9 deletions(-) rename static/{player/index.html => player.html} (100%) diff --git a/README.md b/README.md index fef5950..30a66f2 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ volumes: ### Watch Stream * Load up the example hls.js player in your browser: -http://localhost:8080/player/?url=http://localhost:8080/live/hello.m3u8 +http://localhost:8080/player.html?url=http://localhost:8080/live/hello.m3u8 * Or in Safari, VLC or any HLS player, open: ``` diff --git a/nginx-cuda.conf b/nginx-cuda.conf index c4570b1..ba6abc5 100644 --- a/nginx-cuda.conf +++ b/nginx-cuda.conf @@ -42,12 +42,15 @@ rtmp { http { root /www/static; + sendfile off; + tcp_nopush on; access_log /dev/stdout combined; - ssl_ciphers HIGH:!aNULL:!MD5; - ssl_protocols TLSv1 TLSv1.1 TLSv1.2; - ssl_session_cache shared:SSL:10m; - ssl_session_timeout 10m; + # Uncomment these lines to enable SSL. + # ssl_ciphers HIGH:!aNULL:!MD5; + # ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + # ssl_session_cache shared:SSL:10m; + # ssl_session_timeout 10m; server { listen ${HTTP_PORT}; diff --git a/nginx.conf b/nginx.conf index e29b849..9797103 100644 --- a/nginx.conf +++ b/nginx.conf @@ -42,12 +42,15 @@ rtmp { http { root /www/static; + sendfile off; + tcp_nopush on; access_log /dev/stdout combined; - ssl_ciphers HIGH:!aNULL:!MD5; - ssl_protocols TLSv1 TLSv1.1 TLSv1.2; - ssl_session_cache shared:SSL:10m; - ssl_session_timeout 10m; + # Uncomment these lines to enable SSL. + # ssl_ciphers HIGH:!aNULL:!MD5; + # ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + # ssl_session_cache shared:SSL:10m; + # ssl_session_timeout 10m; server { listen ${HTTP_PORT}; diff --git a/static/player/index.html b/static/player.html similarity index 100% rename from static/player/index.html rename to static/player.html