Merge pull request #11 from JrCs/master
Print when domain renewals occur. Explicitly copy files to /app/ in Docker image
This commit is contained in:
commit
53c1d31e31
2 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,8 @@ MAINTAINER David Parrish <daveparrish@tutanota.com>
|
|||
MAINTAINER Yves Blusseau <90z7oey02@sneakemail.com>
|
||||
MAINTAINER Hadrien Mary <hadrien.mary@gmail.com>
|
||||
|
||||
COPY . /app/
|
||||
|
||||
# Install simp_le program
|
||||
COPY /install_simp_le.sh /app/install_simp_le.sh
|
||||
RUN chmod +rx /app/install_simp_le.sh && sync && /app/install_simp_le.sh && rm -f /app/install_simp_le.sh
|
||||
|
||||
COPY letsencrypt_service letsencrypt_service_data.tmpl nginx.tmpl Procfile update_certs update_nginx /app/
|
||||
|
|
|
@ -24,6 +24,7 @@ update_certs() {
|
|||
mkdir -p /etc/nginx/certs/$domain
|
||||
cd /etc/nginx/certs/$domain
|
||||
|
||||
echo "Creating/renewal $domain certificates..."
|
||||
/usr/local/bin/simp_le \
|
||||
-d "$domain" \
|
||||
-f fullchain.pem -f key.pem \
|
||||
|
|
Loading…
Reference in a new issue