mirror of https://github.com/OpenVidu/openvidu.git
Revert nginx
parent
39be78b4e5
commit
d61c6b89c7
|
@ -10,10 +10,8 @@ RUN apk update && \
|
||||||
perl pcre grep && \
|
perl pcre grep && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
# Copy certbot default config
|
|
||||||
COPY ./default-certbot.conf /default-nginx-certbot-conf/default-certbot.conf
|
|
||||||
|
|
||||||
# Default nginx conf
|
# Default nginx conf
|
||||||
|
COPY ./default.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY ./default_nginx_conf /default_nginx_conf
|
COPY ./default_nginx_conf /default_nginx_conf
|
||||||
|
|
||||||
# Entrypoint and discover public ip scripts
|
# Entrypoint and discover public ip scripts
|
||||||
|
|
|
@ -102,8 +102,7 @@ fi
|
||||||
echo -e "${DOMAIN_OR_PUBLIC_IP}\t${CERTIFICATE_TYPE}" > "${CERTIFICATES_CONF}"
|
echo -e "${DOMAIN_OR_PUBLIC_IP}\t${CERTIFICATE_TYPE}" > "${CERTIFICATES_CONF}"
|
||||||
|
|
||||||
# Start with default certbot conf
|
# Start with default certbot conf
|
||||||
cp /default-nginx-certbot-conf/default-certbot.conf /etc/nginx/vhost.d/default-certbot.conf
|
sed -i "s/{http_port}/${PROXY_HTTP_PORT}/" /etc/nginx/conf.d/default.conf
|
||||||
sed -i "s/{http_port}/${PROXY_HTTP_PORT}/" /etc/nginx/vhost.d/default-certbot.conf
|
|
||||||
nginx -g "daemon on;"
|
nginx -g "daemon on;"
|
||||||
|
|
||||||
case ${CERTIFICATE_TYPE} in
|
case ${CERTIFICATE_TYPE} in
|
||||||
|
@ -187,8 +186,7 @@ Welcome to OpenVidu Server
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Load nginx conf files
|
# Load nginx conf files
|
||||||
rm /etc/nginx/conf.d/*
|
rm /etc/nginx/conf.d/default*.conf
|
||||||
rm /etc/nginx/vhost.d/default-certbot.conf
|
|
||||||
cp /default_nginx_conf/default* /etc/nginx/conf.d
|
cp /default_nginx_conf/default* /etc/nginx/conf.d
|
||||||
|
|
||||||
# Replace config files
|
# Replace config files
|
||||||
|
|
Loading…
Reference in New Issue