mirror of https://github.com/OpenVidu/openvidu.git
deployment: fix nginx main process. Update nginx version
parent
ea59ad0519
commit
edfbe3104e
|
@ -1,4 +1,4 @@
|
||||||
FROM nginx:1.20.0-alpine
|
FROM nginx:1.21.4-alpine
|
||||||
|
|
||||||
# Install required software
|
# Install required software
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
|
@ -29,4 +29,4 @@ RUN mkdir -p /var/www/certbot && \
|
||||||
chmod +x /usr/local/bin/entrypoint.sh && \
|
chmod +x /usr/local/bin/entrypoint.sh && \
|
||||||
chmod +x /usr/local/bin/discover_my_public_ip.sh
|
chmod +x /usr/local/bin/discover_my_public_ip.sh
|
||||||
|
|
||||||
CMD /usr/local/bin/entrypoint.sh
|
CMD [ "/usr/local/bin/entrypoint.sh" ]
|
||||||
|
|
|
@ -463,7 +463,11 @@ printf "\n ======================================="
|
||||||
printf "\n = START OPENVIDU PROXY ="
|
printf "\n = START OPENVIDU PROXY ="
|
||||||
printf "\n ======================================="
|
printf "\n ======================================="
|
||||||
printf "\n\n"
|
printf "\n\n"
|
||||||
nginx -s reload
|
echo "Restarting nginx"
|
||||||
|
NGINX_STARTING_PID=$(cat /var/run/nginx.pid)
|
||||||
# nginx logs
|
while kill -s 0 "$NGINX_STARTING_PID" 2> /dev/null; do
|
||||||
tail -f /var/log/nginx/*.log
|
nginx -s quit
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
echo "Starting nginx..."
|
||||||
|
nginx -g "daemon off;"
|
||||||
|
|
Loading…
Reference in New Issue