mirror of https://github.com/OpenVidu/openvidu.git
Custom volume to customize nginx
parent
d499940495
commit
0c38d4d9b8
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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 ="
|
||||||
|
|
Loading…
Reference in New Issue