Revert nginx

pull/542/head
cruizba 2020-11-09 15:20:04 +01:00
parent 39be78b4e5
commit d61c6b89c7
2 changed files with 3 additions and 7 deletions

View File

@ -10,10 +10,8 @@ RUN apk update && \
perl pcre grep && \
rm -rf /var/cache/apk/*
# Copy certbot default config
COPY ./default-certbot.conf /default-nginx-certbot-conf/default-certbot.conf
# Default nginx conf
COPY ./default.conf /etc/nginx/conf.d/default.conf
COPY ./default_nginx_conf /default_nginx_conf
# Entrypoint and discover public ip scripts

View File

@ -102,8 +102,7 @@ fi
echo -e "${DOMAIN_OR_PUBLIC_IP}\t${CERTIFICATE_TYPE}" > "${CERTIFICATES_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/vhost.d/default-certbot.conf
sed -i "s/{http_port}/${PROXY_HTTP_PORT}/" /etc/nginx/conf.d/default.conf
nginx -g "daemon on;"
case ${CERTIFICATE_TYPE} in
@ -187,8 +186,7 @@ Welcome to OpenVidu Server
EOF
# Load nginx conf files
rm /etc/nginx/conf.d/*
rm /etc/nginx/vhost.d/default-certbot.conf
rm /etc/nginx/conf.d/default*.conf
cp /default_nginx_conf/default* /etc/nginx/conf.d
# Replace config files