-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathwrangler.toml.template
56 lines (53 loc) · 2.48 KB
/
wrangler.toml.template
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 = "cloudflare-b2"
workers_dev = true
compatibility_date = "2023-09-04"
main = "index.js"
# Don't put your application key in this file!
# You should set it as a secret in the Cloudflare dashboard or at the command line:
# echo "<your b2 application key>" | wrangler secret put B2_APPLICATION_KEY
[vars]
B2_APPLICATION_KEY_ID = "<your b2 application key id>"
B2_ENDPOINT = "<your endpoint - e.g. s3.us-west-001.backblazeb2.com >"
# Set BUCKET_NAME to:
# "A Backblaze B2 bucket name" - direct all requests to the specified bucket
# "$path" - use the initial segment in the incoming URL path as the bucket name
# e.g. https://images.example.com/bucket-name/path/to/object.png
# "$host" - use the initial subdomain in the hostname as the bucket name
# e.g. https://bucket-name.images.example.com/path/to/object.png
BUCKET_NAME = "<your bucket name, $path, or $host>"
# Backblaze B2 buckets with public-read visibility do not allow anonymous clients
# to list the bucket’s objects. You can allow or deny this functionality in the
# Worker via ALLOW_LIST_BUCKET
ALLOW_LIST_BUCKET = "<true, if you want to allow clients to list objects, otherwise false>"
# If set, the worker will strip the `file/` prefix from incoming request paths.
# See https://rclone.org/b2/#b2-download-url
RCLONE_DOWNLOAD = "<true, if you are using the Worker to proxy downloads for rclone, otherwise false>"
# If set, these headers will be included in the signed upstream request
# alongside the minimal set of headers required for an AWS v4 signature:
# "authorization", "x-amz-content-sha256" and "x-amz-date".
#
# Note that, if "x-amz-content-sha256" is not included in ALLOWED_HEADERS, then
# any value supplied in the incoming request is discarded and
# "x-amz-content-sha256" will be set to "UNSIGNED-PAYLOAD".
#
# If you set ALLOWED_HEADERS, it is your responsibility to ensure that the
# list of headers that you specify supports the functionality that your client
# apps use, for example, "range". The list below is a suggested starting point.
#
# Note that HTTP headers are not case-sensitive. "host" will match "host",
# "Host" and "HOST".
#ALLOWED_HEADERS = [
# "content-type",
# "date",
# "host",
# "if-match",
# "if-modified-since",
# "if-none-match",
# "if-unmodified-since",
# "range",
# "x-amz-content-sha256",
# "x-amz-date",
# "x-amz-server-side-encryption-customer-algorithm",
# "x-amz-server-side-encryption-customer-key",
# "x-amz-server-side-encryption-customer-key-md5"
#]