【发布时间】:2022-01-06 18:19:54
【问题描述】:
美好的一天!
我已经在我的域中尝试使用 ghost 有一段时间了!我从来不知道 Let's Encrypt 速率限制,所以我反复安装和卸载,直到我无法从 let's encrypt 再次获得另一个 SSL!
我目前正在尝试重新安装并真正使用它,但 Let's Encrypt 不会向我颁发另一个 SSL 证书。我已经等了几天了,他们还是不给我!
我设法从 ZeroSSL 手动获取 SSL 证书,但由于我不熟悉 Nginx 和 SSL 证书,我无法安装它!!
我尝试手动安装 acme.sh 并将默认服务器设置为 ZeroSSL,但每当我运行 ghost setup SSL 时,它仍然使用 Let's Encrypt!
我正在考虑在/etc/nginx/sites-enabled 中手动创建一个配置文件,例如steptzi.com.ng.conf,并链接我手动获得的那个!!
请任何人在这里向我解释如何使用 ZeroSSL 或 acme.sh 为我的域的 WWW 和非 WWW 版本配置 SSL 证书
鬼config.production.json:
{
"url": "https://steptzi.com.ng",
"server": {
"port": 2368,
"host": "127.0.0.1"
},
"database": {
"client": "mysql",
"connection": {
"host": "localhost",
"user": "ghost-39",
"password": "3qQ&7\"lA:Oo^,OanH:MH",
"database": "ghost_prod"
}
},
"mail": {
"transport": "Direct"
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "systemd",
"paths": {
"contentPath": "/var/www/ghost/content"
}
}
steptzi.com.ng.conf
server {
listen 80;
listen [::]:80;
server_name steptzi.com.ng;
root /var/www/ghost/system/nginx-root; # Used for acme.sh SSL verification (https://acme.sh)
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:2368;
}
location ~ /.well-known {
allow all;
}
client_max_body_size 50m;
}
【问题讨论】:
标签: ssl amazon-ec2 ghost-blog acme.sh zerossl