每日备份 2026-06-10 12:57:13

This commit is contained in:
root-backup committed 2026-06-10 12:57:14 +08:00
1 parent fda2ccb8c2
commit 3d2e638c6a
244 files changed
+58890 -3

No files matched your search

+139
View File
@@ -0,0 +1,139 @@
{
"description": "代理域名列表 - 只有这些域名走代理",
"updatedAt": "2026-02-05 15:06 GMT+8",
"domains": [
{
"pattern": "*.telegram.org",
"reason": "Telegram API"
},
{
"pattern": "*.telegram.me",
"reason": "Telegram CDN"
},
{
"pattern": "*.telesco.pe",
"reason": "Telegram API"
},
{
"pattern": "api.telegram.org",
"reason": "Telegram Bot API"
},
{
"pattern": "github.com",
"reason": "GitHub 代码仓库"
},
{
"pattern": "*.github.com",
"reason": "GitHub 服务"
},
{
"pattern": "github.io",
"reason": "GitHub Pages"
},
{
"pattern": "raw.githubusercontent.com",
"reason": "GitHub 资源文件"
},
{
"pattern": "npmjs.com",
"reason": "npm 包管理"
},
{
"pattern": "*.npmjs.com",
"reason": "npm 镜像"
},
{
"pattern": "pypi.org",
"reason": "Python 包管理"
},
{
"pattern": "*.pypi.org",
"reason": "PyPI 镜像"
},
{
"pattern": "docker.io",
"reason": "Docker Hub"
},
{
"pattern": "*.docker.io",
"reason": "Docker 镜像"
},
{
"pattern": "openai.com",
"reason": "OpenAI API"
},
{
"pattern": "*.openai.com",
"reason": "OpenAI 服务"
},
{
"pattern": "anthropic.com",
"reason": "Anthropic API"
},
{
"pattern": "*.anthropic.com",
"reason": "Anthropic 服务"
},
{
"pattern": "discord.com",
"reason": "Discord"
},
{
"pattern": "*.discord.com",
"reason": "Discord 服务"
},
{
"pattern": "slack.com",
"reason": "Slack"
},
{
"pattern": "*.slack.com",
"reason": "Slack 服务"
},
{
"pattern": "google.com",
"reason": "Google 服务"
},
{
"pattern": "*.google.com",
"reason": "Google 镜像"
},
{
"pattern": "youtube.com",
"reason": "YouTube"
},
{
"pattern": "*.youtube.com",
"reason": "YouTube 服务"
},
{
"pattern": "twitter.com",
"reason": "Twitter/X"
},
{
"pattern": "*.twitter.com",
"reason": "Twitter 服务"
},
{
"pattern": "opencollective.com",
"reason": "OpenCollective"
},
{
"pattern": "note.com",
"reason": "Note 日本社交平台"
},
{
"pattern": "ubuntu.com",
"reason": "Ubuntu 软件源"
},
{
"pattern": "debian.org",
"reason": "Debian 软件源"
}
],
"notes": {
"telegram": "Telegram 域名已在 openclaw.json 中单独配置",
"defaultBehavior": "默认直连,仅代理列表中的域名使用代理",
"updateMethod": "编辑此文件后重启 Gateway 使配置生效"
}
}
+35
View File
@@ -0,0 +1,35 @@
#!/bin/bash
# 代理切换脚本 - 按需启用/禁用代理
PROXY_FILE="/root/.openclaw/proxy/proxy-domains.json"
PROXY_ADDR="http://192.168.0.66:7890"
enable_proxy() {
echo "✅ 启用代理: "
export https_proxy=""
export http_proxy=""
export HTTPS_PROXY=""
export HTTP_PROXY=""
echo "已启用代理环境变量"
cat "" | grep 'pattern' | head -10
}
disable_proxy() {
echo "❌ 禁用代理(恢复直连)"
unset https_proxy http_proxy HTTPS_PROXY HTTP_PROXY
echo "已清除代理环境变量"
}
status() {
if [ -n "" ]; then
echo "🟢 代理已启用: "
else
echo "🔴 代理未启用(直连模式)"
fi
}
case "$1" in
enable) enable_proxy ;;
disable) disable_proxy ;;
status|*) status ;;
esac