Subscription Conversion Service
This commit is contained in:
parent
f0dd7f5929
commit
92aa625d89
7
x-ui.sh
7
x-ui.sh
@ -1319,8 +1319,6 @@ acme_path="/root/.acme.sh/${domain}_ecc"
|
||||
cp "${acme_path}/fullchain.cer" "/etc/nginx/ssl/${domain}.cer"
|
||||
cp "${acme_path}/${domain}.key" "/etc/nginx/ssl/${domain}.key"
|
||||
|
||||
# 重载 nginx,让新证书生效
|
||||
systemctl reload nginx
|
||||
|
||||
# --------- 配置 Nginx 反向代理 ----------
|
||||
NGINX_CONF="/etc/nginx/conf.d/sublink.conf"
|
||||
@ -1347,6 +1345,11 @@ server {
|
||||
}
|
||||
EOF
|
||||
|
||||
# 重载 nginx,让新证书生效
|
||||
sleep 1
|
||||
systemctl reload nginx
|
||||
sleep 2
|
||||
|
||||
# --------- 使用 sed 替换 ExecStart 行,添加启动参数 ----------
|
||||
sudo sed -i "/^ExecStart=/ s|$| run --port 8000|" "/etc/systemd/system/sublink.service"
|
||||
# 重新加载 systemd 守护进程
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user