forked from cloudflare/serverless-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.toml.example
37 lines (30 loc) · 1.07 KB
/
wrangler.toml.example
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
name = "r2-registry"
# Custom Cloudflare domain for worker:
# routes = [
# { pattern = "your.custom.domain", custom_domain = true }
# ]
workers_dev = true #set to false to disable the default Worker domain (applicable only if custom domain is used instead)
main = "./index.ts"
compatibility_date = "2024-09-09"
compatibility_flags = ["nodejs_compat"]
## Production
[env.production]
r2_buckets = [
{ binding = "REGISTRY", bucket_name = "" }
]
[env.production.vars]
JWT_REGISTRY_TOKENS_PUBLIC_KEY = ""
# Secrets:
# USERNAME/PASSWORD/READONLY_USERNAME/READONLY_PASSWORD if you want username/password based auth
## Dev - For local dev using `npx wrangler dev`
[env.dev]
r2_buckets = [{ binding = "REGISTRY", bucket_name = "r2-image-registry-dev" }]
[env.dev.vars]
# REGISTRIES_JSON = "[{ \"registry\": \"http://localhost:9999\", \"password_env\": \"PASSWORD\", \"username\": \"hello\" }]"
USERNAME = "hello"
PASSWORD = "world"
# READONLY_USERNAME = "readonly"
# READONLY_PASSWORD = "readonly"
# The necessary secrets are:
# Setup those secrets on .dev.vars in the root of the project
#