Skip to content

Commit

Permalink
Update auto_cert_renewal.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kejilion authored Jan 31, 2024
1 parent a4818b5 commit 163f5f7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions auto_cert_renewal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] --agree-tos --no-eff-email --force-renewal
Expand Down

0 comments on commit 163f5f7

Please sign in to comment.