Custom volume to customize nginx

pull/542/head
cruizba 2020-11-09 16:29:35 +01:00
parent d499940495
commit 0c38d4d9b8
2 changed files with 4 additions and 2 deletions

View File

@ -25,6 +25,7 @@ COPY ./entrypoint.sh /usr/local/bin
RUN mkdir -p /var/www/certbot && \ RUN mkdir -p /var/www/certbot && \
mkdir -p /etc/nginx/vhost.d/ && \ mkdir -p /etc/nginx/vhost.d/ && \
mkdir -p /custom-nginx && \
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

View File

@ -186,10 +186,11 @@ Welcome to OpenVidu Server
EOF EOF
# Load nginx conf files # Load nginx conf files
rm /etc/nginx/conf.d/default*.conf rm /etc/nginx/conf.d/*
# If custom config, don't generate configuration files # If custom config, don't generate configuration files
if [[ -f /etc/nginx/conf.d/custom-nginx.conf ]]; then if [[ -f /custom-nginx/custom-nginx.conf ]]; then
cp /custom-nginx/custom-nginx.conf /etc/nginx/conf.d/custom-nginx.conf
printf "\n" printf "\n"
printf "\n =======================================" printf "\n ======================================="
printf "\n = START OPENVIDU PROXY =" printf "\n = START OPENVIDU PROXY ="