Files
cloud-mail/mail-worker/wrangler-action.toml
2026-05-10 13:12:22 +08:00

54 lines
1.5 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name = "${NAME}"
main = "src/index.js"
compatibility_date = "2025-06-04"
[observability]
enabled = true
[[routes]]
pattern = "${CUSTOM_DOMAIN}"
custom_domain = true
[[d1_databases]]
binding = "db"
database_name = "cloud-mail" # 数据库的名称
database_id = "${D1_DATABASE_ID}" # 使用占位符引用环境变量
[[kv_namespaces]]
binding = "kv"
id = "${KV_NAMESPACE_ID}" # 使用占位符引用环境变量
[[r2_buckets]]
binding = "r2"
bucket_name = "${R2_BUCKET_NAME}" # 使用占位符引用环境变量
[ai]
binding = "AI"
[assets]
binding = "assets" #静态资源绑定名默认不可修改
directory = "./dist" #前端vue项目打包的静态资源存放位置,默认dist
not_found_handling = "single-page-application"
run_worker_first = true
[triggers]
crons = ["*/30 * * * *", "0 16 * * *"] #每30分钟刷新分析缓存每天晚上12点执行每日任务
[vars]
ai_model = ""
#orm_log = false
domain = "${DOMAIN}" #邮件域名可可配置多个 示例: ["example1.com","example2.com"]
admin = "${ADMIN}" #管理员的邮箱 示例: admin@example.com
jwt_secret = "${JWT_SECRET}" #jwt令牌的密钥,随便填一串字符串
project_link = "${PROJECT_LINK}"
analysis_cache = "${ANALYSIS_CACHE}"
linuxdo_client_id = "${LINUXDO_CLIENT_ID}"
linuxdo_client_secret = "${LINUXDO_CLIENT_SECRET}"
linuxdo_callback_url = "${LINUXDO_CALLBACK_URL}"
linuxdo_switch = "${LINUXDO_SWITCH}"
[build]
command = "pnpm --prefix ../mail-vue install && pnpm --prefix ../mail-vue run build"