mirror of https://github.com/wulabing/Xray_onekey
parent
5c2d78f910
commit
437f2a8877
|
@ -382,7 +382,8 @@ function ssl_install() {
|
|||
function acme() {
|
||||
|
||||
sed -i "6s/^/#/" "$nginx_conf"
|
||||
sed -i "6a\\troot $website_dir;" "$nginx_conf"
|
||||
sed -i "6a\\\troot $website_dir;" "$nginx_conf"
|
||||
systemctl restart nginx
|
||||
|
||||
if "$HOME"/.acme.sh/acme.sh --issue -d "${domain}" --webroot "$website_dir" -k ec-256 --force; then
|
||||
print_ok "SSL 证书生成成功"
|
||||
|
|
Loading…
Reference in New Issue