Skip to content

Commit a46232c

Browse files
committed
fix: nginx config use fullchain.cer to fix an incomplete certificate chain
1 parent d1c1b68 commit a46232c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

netlify.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
[[plugins]]
22
package = "@netlify/plugin-nextjs"
3-
[images]
4-
# https://docs.netlify.com/image-cdn/overview/#remote-path
5-
remote_images = ["https:\\/\\/jsonq.top\\/cdn-static\\/.*"]

post/deploy/docker-env-install.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ server {
199199
}
200200
```
201201

202+
**注意:** `ssl_certificate` 这里指定的是 `example.com.cer`,指向此证书能满足大部分场景的基本使用,但是它不是一个完整的证书链。比如第三方网站访问此域名,可能会因为证书问题而出错,此时必须使用 `fullchain.cer`
203+
202204
重启 nginx 容器:`docker restart nginx`
203205

204206
此时访问 `jsonq.top` 应该就可以了,如果还是报不安全,建议去运营商的 ssl 管理后台去上传证书,这里以阿里云为例

0 commit comments

Comments
 (0)