mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2026-06-28 01:58:34 +00:00
add test certbot
This commit is contained in:
+22
-1
@@ -1,3 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
nginx -g 'daemon off;'
|
||||
nginx
|
||||
while [ ! -f /var/run/nginx.pid ]
|
||||
do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
# server needs to be up to grab certificates
|
||||
certbot --nginx \
|
||||
--test-cert \
|
||||
--webroot-path /var/www/matthewtran.com \
|
||||
--non-interactive --agree-tos -m matthewlamtran@berkeley.edu \
|
||||
-d matthewtran.com \
|
||||
-d www.matthewtran.com
|
||||
|
||||
nginx -s reload
|
||||
|
||||
# try renew once a day
|
||||
while true
|
||||
do
|
||||
certbot renew --quiet
|
||||
sleep 86400
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user