mirror of
https://github.com/kejilion/sh.git
synced 2025-10-03 23:34:20 +08:00
Update auto_cert_renewal.sh
This commit is contained in:
parent
a4818b5740
commit
163f5f746f
1 changed files with 9 additions and 5 deletions
|
@ -30,11 +30,15 @@ for cert_file in $certs_directory*_cert.pem; do
|
|||
# 停止 Nginx
|
||||
docker stop nginx
|
||||
|
||||
# 打开 iptables
|
||||
iptables_open
|
||||
|
||||
# 安装 Certbot
|
||||
install_certbot
|
||||
iptables -P INPUT ACCEPT
|
||||
iptables -P FORWARD ACCEPT
|
||||
iptables -P OUTPUT ACCEPT
|
||||
iptables -F
|
||||
|
||||
ip6tables -P INPUT ACCEPT
|
||||
ip6tables -P FORWARD ACCEPT
|
||||
ip6tables -P OUTPUT ACCEPT
|
||||
ip6tables -F
|
||||
|
||||
# 续签证书
|
||||
certbot certonly --standalone -d $domain --email your@email.com --agree-tos --no-eff-email --force-renewal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue