changes in nginx config

This commit is contained in:
Andreas Neue 2018-08-01 15:20:37 +02:00
parent 3d7394d0c7
commit 4b93c28e1a
3 changed files with 7 additions and 7 deletions

View File

@ -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"]

View File

@ -9,7 +9,7 @@ events {
rtmp {
server {
listen 1935;
chunk_size 4000;
chunk_size 4096;
application stream {
live on;

View File

@ -5,10 +5,10 @@
<script src="https://videojs.github.io/videojs-contrib-hls/node_modules/videojs-contrib-hls/dist/videojs.hls.min.js"></script>
</head>
<body>
<p>Video? Video!</ü>
<p>Video? Video!</p>
<video id=autoplay width="720" height="360" class="video-js vjs-default-skin vjs-big-play-centered" controls>
<source src="http://localhost:8080/live/hello.m3u8" type="application/x-mpegURL">
<source src="http://10.0.30.197:8088/live/hello.m3u8" type="application/x-mpegURL">
</video>