搭建halo博客遇到的坑
使用 Certbot 生成证书时,不仅需要添加泛域名 *.ziyoung.top,还要添加主域名 ziyoung.top。
sudo certbot certonly --manual --preferred-challenges dns \
-d ziyoung.top -d *.ziyoung.top \
--server https://acme-v02.api.letsencrypt.org/directory
使用CloudFlare加速时,如果Nginx设置了http重定向为https的规则,遇到了无限重定向的问题。主要是因为CloudFlare默认的SSL/TLS加密模式是Flexible。需要改成Full(同时把Always Use HTTPS打开)。
0