mirror of
https://github.com/CommonLoon102/NBloodServerSupervisor.git
synced 2025-01-03 08:32:45 +01:00
fix mp4 playback with nginx (#16)
This commit is contained in:
parent
2879b1ce1b
commit
5fd606734c
@ -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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user