Skip to content

Commit

Permalink
Merge pull request #8 from seatable/fix-renew-ssl
Browse files Browse the repository at this point in the history
fix renew ssl
  • Loading branch information
freeplant authored Apr 8, 2021
2 parents 438e027 + 5b1ebc6 commit c91758b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/scripts/renew_cert.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash
source /opt/dockerenv
domain=$SEATABLE_THUMBNAIL_SERVER_HOSTNAME

mkdir -p /var/www/challenges/

python3 /scripts/acme-tiny-master/acme_tiny.py --account-key /opt/ssl/${domain}.account.key --csr /opt/ssl/${domain}.csr --acme-dir /var/www/challenges/ > /opt/ssl/${domain}.crt.tmp || exit
mv /opt/ssl/${domain}.crt.tmp /opt/ssl/${domain}.crt
nginx -s reload
nginx -s reload

0 comments on commit c91758b

Please sign in to comment.