-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
wrangler.toml
25 lines (21 loc) · 791 Bytes
/
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
name = "sharex-r2-cloudflare-workers"
account_id = "522ed7942a6ec29727e101623a48ea76"
workers_dev = true
routes = [
{pattern = "r2-sharex.jross.me/*", zone_name = "jross.me"},
{pattern = "i.james.pub/*", zone_name = "james.pub"}
]
compatibility_date = "2022-10-31"
compatibility_flags = ["nodejs_compat"]
main = "./dist/index.mjs"
[build]
command = "npm run build"
[[r2_buckets]]
bucket_name = "sharex-files"
preview_bucket_name = "sharex-files"
binding = "R2_BUCKET"
[vars]
# Change to the domain your Public Bucket is connected to.
#CUSTOM_PUBLIC_BUCKET_DOMAIN = "custom-bucket.domain.tld"
# Change to not let the worker serve files, only allowing traffic through the Public Bucket. Do not set if you have old links pointing to the worker.
#ONLY_ALLOW_ACCESS_TO_PUBLIC_BUCKET = true