-
Notifications
You must be signed in to change notification settings - Fork 246
/
wrangler.toml
45 lines (33 loc) · 1.07 KB
/
wrangler.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
name = "pb"
compatibility_date = "2023-01-28"
compatibility_flags = [ "nodejs_compat" ]
workers_dev = false
main = "src/index.js"
rules = [
{ type = "Text", globs = [ "*/frontend/**", "*/doc/**" ], fallthrough = true }
]
#----------------------------------------
# lines below are what you should modify
#----------------------------------------
[[routes]]
# Refer to https://developers.cloudflare.com/workers/wrangler/configuration/#routes
pattern = "shz.al"
custom_domain = true
[[kv_namespaces]]
binding = "PB" # do not touch this
id = "cc398e983a234aa19de5ea6af571a483" # id of your KV namespace
[vars]
# must be consistent with your routes
BASE_URL = "https://shz.al"
# url to repo, displayed in the index page
REPO = "https://github.com/SharzyL/pastebin-worker"
# url to the favicon
FAVICON = "https://sharzy.in/favicon-32x32.png"
# the name displayed in TOS
TOS_MAINTAINER = "Sharzy"
# the email displayed in TOS
TOS_MAIL = "[email protected]"
# Cache-Control max-age for static pages
CACHE_STATIC_PAGE_AGE = 7200
# Cache-Control max-age for static pages
CACHE_PASTE_AGE = 600