chore: sync local changes to Gitea
Some checks failed
🚀 Deploy cloud-mail to Cloudflare Workers / 🏗️ Build and Deploy (push) Has been cancelled
Some checks failed
🚀 Deploy cloud-mail to Cloudflare Workers / 🏗️ Build and Deploy (push) Has been cancelled
This commit is contained in:
6501
mail-worker/package-lock.json
generated
Normal file
6501
mail-worker/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,53 +0,0 @@
|
||||
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"
|
||||
not_found_handling = "single-page-application"
|
||||
run_worker_first = true
|
||||
|
||||
[triggers]
|
||||
crons = ["*/30 * * * *", "0 16 * * *"]
|
||||
|
||||
|
||||
[vars]
|
||||
ai_model = "${AI_MODEL}"
|
||||
analysis_cache = "${ANALYSIS_CACHE}"
|
||||
#orm_log = false
|
||||
domain = "${DOMAIN}"
|
||||
admin = "${ADMIN}"
|
||||
jwt_secret = "${JWT_SECRET}"
|
||||
project_link = "${PROJECT_LINK}"
|
||||
|
||||
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"
|
||||
@@ -1,44 +0,0 @@
|
||||
name = "cloud-mail-dev"
|
||||
main = "src/index.js"
|
||||
compatibility_date = "2025-06-04"
|
||||
keep_vars = true
|
||||
|
||||
[observability]
|
||||
enabled = true
|
||||
|
||||
[dev]
|
||||
ip = "0.0.0.0"
|
||||
|
||||
[[d1_databases]]
|
||||
binding = "db"
|
||||
database_name = "email"
|
||||
database_id = "a4c1a63a-6ef5-4e6d-8e8c-b6d9e8feb810"
|
||||
|
||||
[[kv_namespaces]]
|
||||
binding = "kv"
|
||||
id = "2io01d4b299e481b9de060ece9e7785c"
|
||||
|
||||
#[[r2_buckets]]
|
||||
#binding = "r2"
|
||||
#bucket_name = "email"
|
||||
|
||||
#[ai]
|
||||
#binding = "ai"
|
||||
|
||||
[assets]
|
||||
binding = "assets"
|
||||
directory = "./dist"
|
||||
not_found_handling = "single-page-application"
|
||||
run_worker_first = true
|
||||
|
||||
#[[send_email]]
|
||||
#name = "email"
|
||||
|
||||
|
||||
[vars]
|
||||
ai_model = ""
|
||||
analysis_cache = false
|
||||
orm_log = false
|
||||
domain = ["example.com", "example2.com", "example3.com", "example4.com"]
|
||||
admin = "admin@example.com"
|
||||
jwt_secret = "b7f29a1d-18e2-4d3b-941f-f6b2c97c02fd"
|
||||
@@ -1,45 +0,0 @@
|
||||
name = "test-mail"
|
||||
main = "src/index.js"
|
||||
compatibility_date = "2025-06-04"
|
||||
keep_vars = true
|
||||
|
||||
[observability]
|
||||
enabled = true
|
||||
|
||||
[[d1_databases]]
|
||||
binding = "db" #d1数据库绑定名默认不可修改
|
||||
database_name = "test-email" #d1数据库名字
|
||||
database_id = "e65f099d-796d-4eaa-8dff-529b368b20db" #d1数据库id
|
||||
|
||||
[[kv_namespaces]]
|
||||
binding = "kv" #kv绑定名默认不可修改
|
||||
id = "9be10cd058e04c55b526f8c0c116f50c" #kv数据库id
|
||||
|
||||
#(可选)
|
||||
#[[r2_buckets]]
|
||||
#binding = "r2" #r2对象存储绑定名默认不可修改
|
||||
#bucket_name = "test-email" #r2对象存储桶的名字
|
||||
|
||||
[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 = "" #ai模型,不填默认使用@cf/meta/llama-3.1-8b-instruct
|
||||
analysis_cache = false #是否开启分析数据缓存
|
||||
orm_log = false #是否sql日志
|
||||
domain = ["example.com"] #邮件域名可可配置多个 示例: ["example1.com","example2.com"]
|
||||
admin = "admin@example.com" #管理员的邮箱 示例: admin@example.com
|
||||
jwt_secret = "b7f29a1d-18e2-4d3b-941f-f6b2c97c02fd" #jwt令牌的密钥,随便填一串字符串
|
||||
|
||||
[build]
|
||||
command = "pnpm --prefix ../mail-vue install && pnpm --prefix ../mail-vue run build"
|
||||
Reference in New Issue
Block a user