From 5fd606734c1414c7f48d692a52b490b2f44b590b Mon Sep 17 00:00:00 2001 From: CommonLoon102 <321850+CommonLoon102@users.noreply.github.com> Date: Sat, 1 Feb 2020 23:54:06 +0000 Subject: [PATCH] fix mp4 playback with nginx (#16) --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6970255..23bfee3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,6 +48,7 @@ RUN apt-get update \ nano \ nasm \ nginx \ + nginx-extras \ && rm -rf /var/lib/apt/lists/* # 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-Proto $scheme; \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 CMD service nginx start \