请问Cloudflare上这个证书在1panel上到底应该怎么安装。

安装指南:Zone-level authenticated origin pulls · Cloudflare SSL/TLS docs

即,需要把下边这段代码写入nginx.conf,但是我试了好几次,要么在面板后台输入报错,要么直接修改conf文件导致openresty死机无法重启。

ssl_verify_client optional;
ssl_client_certificate /etc/nginx/certs/cloudflare.crt;

还有个问题是,这个目录并不是很好判断,我看了下docker挂载目录,将文件放在/pan/1panel/apps/openresty/openresty/certs路径,挂在容器目录/usr/local/openresty/certs,但是设置时也报错,重启容器后发现又保存进去了。

错误如下:
服务内部错误:

stderr:
2024/05/07 11:28:54 [warn] 25#25: “ssl_stapling” ignored, issuer certificate not found for certificate “/www/sites/qq.com/ssl/cf.pem” nginx: [warn] “ssl_stapling” ignored, issuer certificate not found for certificate “/www/sites/qq.com/ssl/cf.pem”
2024/05/07 11:28:54 [warn] 25#25: “ssl_stapling” ignored, issuer certificate not found for certificate “/www/sites/www.qq.com/ssl/fullchain.pem” nginx: [warn] “ssl_stapling” ignored, issuer certificate not found for certificate “/www/sites/www.qq.com/ssl/fullchain.pem”
2024/05/07 11:28:54 [emerg] 25#25: “server” directive is not allowed here in /usr/local/openresty/nginx/conf/nginx.conf:48
nginx: [emerg] “server” directive is not allowed here in /usr/local/openresty/nginx/conf/nginx.conf:48
nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test failed

这个错误很明显了吧