update network CF

This commit is contained in:
Faker 2023-11-15 16:13:00 +08:00
parent 45104d5fb9
commit 13c29e5889
6 changed files with 14 additions and 14 deletions

View File

@ -47,7 +47,7 @@ check_url() {
# 获取有效 config.sh 链接
get_valid_config() {
config_list=(https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Conf/Qinglong/config.sample.sh)
config_list=(http://git.yanyuwangluo.cn:1203/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Conf/Qinglong/config.sample.sh)
for url in ${config_list[@]}; do
check_url $url
if [ $? = 0 ]; then
@ -80,7 +80,7 @@ fi
# 获取有效 extra.sh 链接
get_valid_extra() {
extra_list=(https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Tasks/qlrepo/extra.sh)
extra_list=(http://git.yanyuwangluo.cn:1203/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Tasks/qlrepo/extra.sh)
for url in ${extra_list[@]}; do
check_url $url
if [ $? = 0 ]; then
@ -223,7 +223,7 @@ fi
# 获取有效 task_before.sh 链接
get_valid_task_before() {
task_before_list=(https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/Helpcode2.8/task_before.sh)
task_before_list=(http://git.yanyuwangluo.cn:1203/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/Helpcode2.8/task_before.sh)
for url in ${task_before_list[@]}; do
check_url $url
if [ $? = 0 ]; then
@ -308,7 +308,7 @@ add_curl_sample() {
echo "开始添加 task:curl config.sample.sh"
# 获取token
token=$(cat /ql/config/auth.json | jq --raw-output .token)
curl -s -H 'Accept: application/json' -H "Authorization: Bearer $token" -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept-Language: zh-CN,zh;q=0.9' --data-binary '{"name":"自动更新模板","command":"curl -L https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Conf/Qinglong/config.sample.sh -o /ql/sample/config.sample.sh && cp -rf /ql/sample/config.sample.sh /ql/config","schedule":"45 6,18 * * *"}' --compressed 'http://127.0.0.1:5700/api/crons?t=1627380635389'
curl -s -H 'Accept: application/json' -H "Authorization: Bearer $token" -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept-Language: zh-CN,zh;q=0.9' --data-binary '{"name":"自动更新模板","command":"curl -L http://git.yanyuwangluo.cn:1203/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Conf/Qinglong/config.sample.sh -o /ql/sample/config.sample.sh && cp -rf /ql/sample/config.sample.sh /ql/config","schedule":"45 6,18 * * *"}' --compressed 'http://127.0.0.1:5700/api/crons?t=1627380635389'
fi
}
run_curl_sample() {

View File

@ -47,7 +47,7 @@ check_url() {
# 获取有效 config.sh 链接
get_valid_config() {
config_list=(https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Conf/Qinglong/config.sample.sh)
config_list=(http://git.yanyuwangluo.cn:1203/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Conf/Qinglong/config.sample.sh)
for url in ${config_list[@]}; do
check_url $url
if [ $? = 0 ]; then
@ -80,7 +80,7 @@ fi
# 获取有效 extra.sh 链接
get_valid_extra() {
extra_list=(https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Tasks/qlrepo/extra.sh)
extra_list=(http://git.yanyuwangluo.cn:1203/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Tasks/qlrepo/extra.sh)
for url in ${extra_list[@]}; do
check_url $url
if [ $? = 0 ]; then
@ -223,7 +223,7 @@ fi
# 获取有效 task_before.sh 链接
get_valid_task_before() {
task_before_list=(https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/Helpcode2.8/task_before.sh)
task_before_list=(http://git.yanyuwangluo.cn:1203/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/Helpcode2.8/task_before.sh)
for url in ${task_before_list[@]}; do
check_url $url
if [ $? = 0 ]; then
@ -308,7 +308,7 @@ add_curl_sample() {
echo "开始添加 task:curl config.sample.sh"
# 获取token
token=$(cat /ql/data/config/auth.json | jq --raw-output .token)
curl -s -H 'Accept: application/json' -H "Authorization: Bearer $token" -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept-Language: zh-CN,zh;q=0.9' --data-binary '{"name":"自动更新模板","command":"curl -L https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Conf/Qinglong/config.sample.sh -o /ql/data/sample/config.sample.sh && cp -rf /ql/data/sample/config.sample.sh /ql/config","schedule":"45 6,18 * * *"}' --compressed 'http://127.0.0.1:5600/api/crons?t=1697961933000'
curl -s -H 'Accept: application/json' -H "Authorization: Bearer $token" -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept-Language: zh-CN,zh;q=0.9' --data-binary '{"name":"自动更新模板","command":"curl -L http://git.yanyuwangluo.cn:1203/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Conf/Qinglong/config.sample.sh -o /ql/data/sample/config.sample.sh && cp -rf /ql/data/sample/config.sample.sh /ql/config","schedule":"45 6,18 * * *"}' --compressed 'http://127.0.0.1:5600/api/crons?t=1697961933000'
fi
}
run_curl_sample() {

View File

@ -376,7 +376,7 @@ if [ "$access" != "2" ]; then
docker exec -it $CONTAINER_NAME bash -c "sed -i \"s/ALLOW_NUM=40/ALLOW_NUM=100/\" /ql/ninja/backend/.env && cd /ql/ninja/backend && pm2 start"
fi
log "8.开始青龙内部配置"
docker exec -it $CONTAINER_NAME bash -c "$(curl -fsSL https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/1customCDN.sh)"
docker exec -it $CONTAINER_NAME bash -c "$(curl -fsSL http://git.yanyuwangluo.cn:1203/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/1customCDN.sh)"
else
warn "8.未检测到 token取消内部配置"
fi

View File

@ -372,11 +372,11 @@ if [ "$access" != "2" ]; then
if [ "$(grep -c "token" $CONFIG_PATH/auth.json)" != 0 ]; then
log "7.开始安装或重装 Ninja"
if [ "$INSTALL_NINJA" = true ]; then
docker exec -it $CONTAINER_NAME bash -c "cd /ql;ps -ef|grep ninja|grep -v grep|awk '{print $1}'|xargs kill -9;rm -rf /ql/ninja;git clone https://yanyu.ltd/https://github.com/yanyuwangluo/Waikiki_ninja.git /ql/ninja;cd /ql/ninja/backend;pnpm install;cp .env.example .env;cp sendNotify.js /ql/scripts/sendNotify.js;sed -i \"s/ALLOW_NUM=40/ALLOW_NUM=100/\" /ql/ninja/backend/.env;pm2 start"
docker exec -it $CONTAINER_NAME bash -c "cd /ql;ps -ef|grep ninja|grep -v grep|awk '{print $1}'|xargs kill -9;rm -rf /ql/ninja;git clone http://git.yanyuwangluo.cn:1203/https://github.com/yanyuwangluo/Waikiki_ninja.git /ql/ninja;cd /ql/ninja/backend;pnpm install;cp .env.example .env;cp sendNotify.js /ql/scripts/sendNotify.js;sed -i \"s/ALLOW_NUM=40/ALLOW_NUM=100/\" /ql/ninja/backend/.env;pm2 start"
docker exec -it $CONTAINER_NAME bash -c "sed -i \"s/ALLOW_NUM=40/ALLOW_NUM=100/\" /ql/ninja/backend/.env && cd /ql/ninja/backend && pm2 start"
fi
log "8.开始青龙内部配置"
docker exec -it $CONTAINER_NAME bash -c "$(curl -fsSL https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/1customCDN.sh)"
docker exec -it $CONTAINER_NAME bash -c "$(curl -fsSL http://git.yanyuwangluo.cn:1203/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/1customCDN.sh)"
else
warn "8.未检测到 token取消内部配置"
fi

View File

@ -324,7 +324,7 @@ echo -e "\n"
if [ "$access" != "2" ]; then
if [ "$(grep -c "token" $DATA_PATH/config/auth.json)" != 0 ]; then
log "8.开始青龙内部配置"
docker exec -it $CONTAINER_NAME bash -c "$(curl -fsSL https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/1customCDNN.sh)"
docker exec -it $CONTAINER_NAME bash -c "$(curl -fsSL http://git.yanyuwangluo.cn:1203/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/1customCDNN.sh)"
else
warn "8.未检测到 token取消内部配置"
fi

View File

@ -322,9 +322,9 @@ docker ps
if [ "$pannel" != "2" ]; then
log "5.开始安装面板"
if [ "$image" = "1" -o "$image" = "5" ]; then
url="https://yanyu.ltd/https://raw.githubusercontent.com/Annyoo2021/jd_v4_bot/main/v4mb.sh"
url="http://git.yanyuwangluo.cn:1203/https://raw.githubusercontent.com/Annyoo2021/jd_v4_bot/main/v4mb.sh"
else
url="https://yanyu.ltd/https://raw.githubusercontent.com/jiulan/jd_v4/main/v4mb.sh"
url="http://git.yanyuwangluo.cn:1203/https://raw.githubusercontent.com/jiulan/jd_v4/main/v4mb.sh"
fi
docker exec $CONTAINER_NAME bash -c "$(curl -fsSL $url)"
fi