chore: sync local changes to Gitea

This commit is contained in:
shumengya
2026-06-24 22:10:22 +08:00
parent df308e3ae6
commit 9e24d85cd0
13 changed files with 81 additions and 331 deletions

View File

@@ -1,6 +1,3 @@
# Cloudflare Worker 配置文件
# 更多配置选项: https://developers.cloudflare.com/workers/wrangler/configuration/
# Worker 名称(修改为你想要的名称)
name = "cloudflare-search"
@@ -15,45 +12,16 @@ compatibility_date = "2024-12-04"
# 设置为 true 会自动分配一个 xxx.workers.dev 域名
workers_dev = true
# 账号 ID (可选,部署时会自动填充)
# account_id = "your-account-id"
# ============================================
# 路由配置(可选)
# ============================================
# 如果你想将 Worker 绑定到自定义域名,取消注释并配置:
# routes = [
# { pattern = "search.yourdomain.com/*", zone_name = "yourdomain.com" }
# ]
# ============================================
# 环境变量(可选)
# ============================================
[vars]
# Google Custom Search API 配置
# GOOGLE_API_KEY = ""
# GOOGLE_CX = ""
# API 访问令牌(可选)
# 配置后,所有 /search 请求都需要提供此 token 进行鉴权
# 可以通过 Authorization header (Bearer token) 或 query 参数 (?token=xxx) 传递
# TOKEN = ""
TOKEN = "shumengya520"
# ============================================
# 环境配置(可选)
# ============================================
# 生产环境配置
# [env.production]
# name = "cloudflare-search-prod"
# workers_dev = false
# routes = [
# { pattern = "search.yourdomain.com/*", zone_name = "yourdomain.com" }
# ]
# 开发环境配置
# [env.staging]
# name = "cloudflare-search-staging"
# workers_dev = true
# ============================================
# 资源限制(可选)