forked from pureink/inkrss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.example.toml
71 lines (54 loc) · 1.59 KB
/
wrangler.example.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
account_id = ""
name = "xdnmb-watcher-dev"
workers_dev = true
main = "./dist/main.js"
compatibility_date = "2023-08-07"
kv_namespaces = [
# { binding = "KV", id = "", preview_id = "" }
# Don't bind __STATIC_CONTENT here. It will be bound automatically.
]
[triggers]
crons = ["*/1 * * * *"]
[build]
command = "webpack && cd frontend && pnpm install && pnpm build"
# command = "pwsh build.ps1" if you are using Windows. This powershell script will check if the frontend is edited and will skip if not modified.
[site]
bucket = "./frontend/out"
# Global variables can be used by the Worker scripts.
# NOT inherited. Need to define in each environment.
[vars]
NOTIFIER = "telegram" # Now only support telegram
PARSE_URL = "" # can be set to "https://inkrssparse.vercel.app" with fair use
SECRET_PATH = ""
# Bark notification
BARK_URL = ""
# Telegram notification
TELEGRAPH_TOKEN = ""
TG_TOKEN = ""
TG_SENDID = 123456789 # OR "@channel_name"
TG_USERID = 123456789
# WeChat notification
WECHAT_URL = ""
# XDNMB Cookie. Value of "userhash" in cookie.
COOKIES = ""
BASE_URL = ""
FRONTEND_URL = ""
# # Environments / Multiple Workers
# # Ref: https://developers.cloudflare.com/workers/platform/environments
# [env.production]
# name = "xdnmb-watcher"
# # workers_dev = false
# # route = ""
# # zone_id = ""
# kv_namespaces = [
# # { binding = "KV", id = "" }
# ]
# [env.production.vars]
# NOTIFIER = "telegram" # bark, telegram or wechat
# PARSE_URL = ""
# SECRET_PATH = ""
# # Telegram notification
# TELEGRAPH_TOKEN = ""
# TG_TOKEN = ""
# TG_SENDID = 123456789 # OR "@channel_name"
# TG_USERID = 123456789