From 4b93c28e1a937426ad10c9d55a9945c5fa6b1c3b Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Wed, 1 Aug 2018 15:20:37 +0200 Subject: [PATCH] changes in nginx config --- Dockerfile | 8 ++++---- nginx.conf | 2 +- player.html | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 182f964..b0ab369 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ ENV FFMPEG_VERSION 3.4.2 EXPOSE 1935 EXPOSE 80 -RUN mkdir -p /opt/data && mkdir /www +RUN mkdir -p /opt/data && mkdir -p /opt/nginx/conf && mkdir /www # Build dependencies. @@ -68,7 +68,7 @@ RUN cd /tmp/nginx-${NGINX_VERSION} && \ --with-debug && \ cd /tmp/nginx-${NGINX_VERSION} && make && make install -ADD nginx.conf /opt/nginx/nginx.conf -ADD static /www/static +VOLUME /opt/nginx/conf +VOLUME /www/static -CMD ["/opt/nginx/sbin/nginx"] +CMD ["/opt/nginx/sbin/nginx", "-c", "/opt/nginx/conf/nginx.conf"] diff --git a/nginx.conf b/nginx.conf index 7d4e484..b578c3d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -9,7 +9,7 @@ events { rtmp { server { listen 1935; - chunk_size 4000; + chunk_size 4096; application stream { live on; diff --git a/player.html b/player.html index d01867d..cbcef3d 100644 --- a/player.html +++ b/player.html @@ -5,10 +5,10 @@ -

Video? Video! +

Video? Video!