Skip to content

Commit c92fe35

Browse files
committed
Update wildcard ssl scripts
1 parent 4c11cf0 commit c92fe35

File tree

3 files changed

+5
-22
lines changed

3 files changed

+5
-22
lines changed

Diff for: config/openresty/scripts/reload-wildcard-cert.sh

-20
This file was deleted.

Diff for: scripts/production/renew_wildcard_ssl.sh renamed to config/openresty/scripts/renew-wildcard-ssl.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
ACME=/usr/local/bin/acme-nginx
55

66
# Sources the environment variables required
7-
. /etc/blot/environment.sh
7+
source /etc/blot/secrets.env
88

99
if [ -z "$BLOT_HOST" ]; then
1010
echo "BLOT_HOST variable missing, pass the hostname of the blot instance as an argument to this script"
@@ -45,4 +45,7 @@ echo "[`date -u +%Y-%m-%dT%T.%3NZ`] Beginning storage of key and pem in redis"
4545
cat /etc/ssl/private/letsencrypt-domain.key | redis-cli -h $BLOT_REDIS_HOST -x set 'blot:openresty:ssl:key'
4646
cat /etc/ssl/private/letsencrypt-domain.pem | redis-cli -h $BLOT_REDIS_HOST -x set 'blot:openresty:ssl:pem'
4747

48-
redis-cli -h $BLOT_REDIS_HOST set 'blot:openresty:ssl:updated' $(date -u +%s)
48+
redis-cli -h $BLOT_REDIS_HOST set 'blot:openresty:ssl:updated' $(date -u +%s)
49+
50+
# Restart openresty to use the new cert
51+
sudo openresty -s reload

0 commit comments

Comments
 (0)