怎么把证书上传到容器的目录里面。



上传到文件对应的本地目录还是找不到,nginx不能启动。
服务内部错误: stderr: 2025/01/16 00:31:54 [emerg] 8#8: cannot load certificate “/usr/local/openresty/nginx/conf/nyfullchain.pem”: BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/usr/local/openresty/nginx/conf/nyfullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file) nginx: [emerg] cannot load certificate “/usr/local/openresty/nginx/conf/nyfullchain.pem”: BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/usr/local/openresty/nginx/conf/nyfullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file) nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test failed

1panel 创建的网站不是支持在web界面配置证书嘛,为什么还要手动去配置呢

image

我有自己的nginx配置文件,只用反代的功能。这个问题已经解决。问题关闭。