forked from kotx/render
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.toml
54 lines (43 loc) · 2.29 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
name = "render"
main = "src/index.ts"
compatibility_date = "2022-05-15"
# Set this to false if you don't want to use the default *.workers.dev route.
# Note that *.workers.dev routes don't support native worker-level caching: https://developers.cloudflare.com/workers/runtime-apis/cache/
workers_dev = true
[vars]
# The `access-control-allow-origin` header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
# Optional, the `access-control-allow-origin` header is omitted if unset, which blocks all cross-origin requests.
ALLOWED_ORIGINS = ""
# The `cache-control` header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control.
# Optional, the `cache-control` header is omitted if unset, which would NOT disable caching: https://developers.cloudflare.com/workers/runtime-apis/cache/#headers
# For example, you can disable all cache by setting this to `no-store`.
CACHE_CONTROL = "max-age=86400"
# The string to prepend to each file path. Optional, nothing is prepended to the path if unset.
PATH_PREFIX = ""
# Index file to search for on directory requests, set to "" to disable indexes
# Relative to the directory of the request.
#INDEX_FILE = ""
INDEX_FILE = "index.html"
# File to fall back to when the requested path is not found in the bucket.
# Incurs an additional read operation for 404 requests.
# Set to "" to disable custom 404 fallbacks.
# Relative to the root of the bucket.
NOTFOUND_FILE = ""
#NOT_FOUND_FILE = "404.html"
# Enable to show a directory listing fallback on paths ending in /
# If INDEX_FILE is also provided, it will be used instead if the file exists.
DIRECTORY_LISTING = false
# The number of items to show per page in directory listings.
# Listings may also return less if the listing API call reaches a size limit.
# Maximum of 1000.
ITEMS_PER_PAGE = 1000
# Enable to hide files or directories beginning with . from directory listings.
HIDE_HIDDEN_FILES = false
# Set a cache header here, e.g. "max-age=86400", if you want to cache directory listings.
DIRECTORY_CACHE_CONTROL = "no-store"
# Set debugging log enabled
LOGGING = true
[[r2_buckets]]
binding = "R2_BUCKET"
bucket_name = "kot" # Set this to your R2 bucket name. Required
preview_bucket_name = "kot" # Set this to your preview R2 bucket name. Can be equal to bucket_name. Optional