-
Notifications
You must be signed in to change notification settings - Fork 273
/
Copy pathwrangler.toml
56 lines (41 loc) · 1.26 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
46
47
48
49
50
51
52
53
54
55
56
name = "pb"
compatibility_date = "2023-01-28"
workers_dev = false
main = "src/index.ts"
[[rules]]
type = "Text"
# Due to bugs of wrangler, we cannot specify glob by prefix
globs = [ "**.css", "**.html", "**.in", "**.md" ]
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 = "435f8959b9de485ea48751ba557d90f5" # 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
# Default expiration
DEFAULT_EXPIRATION = "7d"
# Max expiration
MAX_EXPIRATION = "30d"
# A collection of {username: password} pair
# Leave empty to disable auth
BASIC_AUTH = {}