nginx自动部署https证书
let’s encrypt
cd /home/data/app
git clone https://github.com/letsencrypt/letsencrypt
mkdir -p /home/data/data/html/.well-known/acme-challenge
/home/data/app/letsencrypt/letsencrypt-auto certonly –email info@huairen.me -d huairen.me -d www.huairen.me –webroot -w /home/data/data/html/ –agree-tos –renew-by-default
添加自动更新证书到计划任务
0 3 1 * * /home/data/app/letsencrypt/letsencrypt-auto certonly –email info@@huairen.me -d huairen.me -d www.huairen.me –webroot -w /home/data/data/html/ –agree-tos –renew-by-default && /home/data/app/nginx/sbin/nginx -s reload
没有评论
暂无评论
RSS feed for comments on this post.
对不起,该文章的评论被关闭了!