Commit 4bb54559 authored by rg's avatar rg

Update

parent 3c58fd93
......@@ -60,7 +60,7 @@ RUN echo 'DOMAIN=$1; shift; SSL=$1; shift; SSL_LETSENCRYPTMAIL=$1; shift;' >>$IN
echo 'CONF=${CONF//\\{DOMAIN\\}/$DOMAIN}' >>$INIT; \
echo 'echo "${CONF}" > /etc/nginx/sites-enabled/loadbalancer.conf' >>$INIT; \
echo 'service nginx start' >>$INIT; \
echo '[ "FIRST_INIT" = "true" ] || [ ! -f /etc/letsencrypt/live/renewal/$DOMAIN.conf ] && certbot certonly --webroot -w /home/www/letsencrypt --agree-tos -d "$DOMAIN" -m $SSL_LETSENCRYPTMAIL && service nginx reload' >>$INIT;
echo '[ "FIRST_INIT" = "true" ] || [ ! -f /etc/letsencrypt/renewal/$DOMAIN.conf ] && certbot certonly --webroot -w /home/www/letsencrypt --agree-tos -d "$DOMAIN" -m $SSL_LETSENCRYPTMAIL && service nginx reload' >>$INIT;
# openssl req -x509 -nodes -newkey rsa:1024 -days 1 -keyout privkey.pem -out fullchain.pem -subj '/CN=localhost'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment