已经安装了 1panel 查看订阅的时候能用 1panel 里的现有网站而不是另开一个 nginx 订阅网站吗
1panel 的 openresty 配置在/opt/1panel/apps/openresty/openresty/conf/conf.d
把脚本里这段找个网站的配置加进去就行了。
location ~ ^/s/(clashMeta|default|clashMetaProfiles|sing-box|sing-box_profiles)/(.*) {
default_type 'text/plain; charset=utf-8';
alias /etc/v2ray-agent/subscribe/$1/$2;
}
1panel 的 openresty 是 docker 部署的,需要容器挂载 /etc/v2ray-agent/ 才能成功访问,但是 /usr/share/nginx/html 是 默认挂载了的,把订阅文件复制或者像利用1panel证书那样链接过去再修改一下上面的 aliass 就不用改 docker-compose 了。
之后docker ps|grep openresty|awk '{print $1}'|xargs -I {} docker exec {} openresty -s reload重载一下就行了。
已经安装1panel后,卸载重装脚本,订阅会恢复一会儿就不能再打开了,希望开发者修复下
已经安装1panel后,卸载重装脚本,订阅会恢复一会儿就不能再打开了,希望开发者修复下
配置冲突,建议安装1panel申请证书后再用脚本安装。
1panel 的 openresty 配置在
/opt/1panel/apps/openresty/openresty/conf/conf.d把脚本里这段找个网站的配置加进去就行了。
location ~ ^/s/(clashMeta|default|clashMetaProfiles|sing-box|sing-box_profiles)/(.*) { default_type 'text/plain; charset=utf-8'; alias /etc/v2ray-agent/subscribe/$1/$2; } 1panel 的 openresty 是 docker 部署的,需要容器挂载 /etc/v2ray-agent/ 才能成功访问,但是 /usr/share/nginx/html 是 默认挂载了的,把订阅文件复制或者像利用1panel证书那样链接过去再修改一下上面的 aliass 就不用改 docker-compose 了。
之后
docker ps|grep openresty|awk '{print $1}'|xargs -I {} docker exec {} openresty -s reload重载一下就行了。
复杂配置建议手动配置。