fix mp4 playback with nginx (#16)

This commit is contained in:
CommonLoon102 2020-02-01 23:54:06 +00:00 committed by GitHub
parent 2879b1ce1b
commit 5fd606734c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,7 @@ RUN apt-get update \
nano \ nano \
nasm \ nasm \
nginx \ nginx \
nginx-extras \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Installing the NBlood supervisor related things # Installing the NBlood supervisor related things
@ -86,6 +87,10 @@ server { \n\
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; \n\ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; \n\
proxy_set_header X-Forwarded-Proto $scheme; \n\ proxy_set_header X-Forwarded-Proto $scheme; \n\
} \n\ } \n\
location ~/cp.mp4 { \n\
root /supervisor/publish/wwwroot; \n\
mp4; \n\
} \n\
}' > /etc/nginx/sites-available/default && service nginx start && nginx -t && nginx -s reload }' > /etc/nginx/sites-available/default && service nginx start && nginx -t && nginx -s reload
CMD service nginx start \ CMD service nginx start \