-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
39 lines (33 loc) · 1.22 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
name = "cloudflare-docker-proxy"
main = 'src/index.js'
compatibility_date = "2023-12-01"
[dev]
ip = "0.0.0.0"
port = 8787
local_protocol = "http"
[env.production]
name = "cloudflare-docker-proxy"
routes = [
{ pattern = "hub.your.domain", custom_domain = true },
# { pattern = "quay.your.domain", custom_domain = true },
# { pattern = "gcr.your.domain", custom_domain = true },
# { pattern = "k8s-gcr.your.domain", custom_domain = true },
# { pattern = "k8s.your.domain", custom_domain = true },
# { pattern = "ghcr.your.domain", custom_domain = true },
# { pattern = "cloudsmith.your.domain", custom_domain = true },
# { pattern = "ecr.your.domain", custom_domain = true },
]
[env.production.vars]
MODE = "production"
DEFAULT_DOCKER_REGISTRY_URL = "https://index.docker.io"
# DEFAULT_DOCKER_REGISTRY_URL = "https://dockerproxy.cn"
DEFAULT_DOCKER_REGISTRY_AUTH_URL = "https://auth.docker.io/token"
GET_TOKEN_BY_CF = true
[env.staging]
name = "cloudflare-docker-proxy-staging"
route = { pattern = "docker-staging.your.domain", custom_domain = true }
[env.staging.vars]
MODE = "staging"
DEFAULT_DOCKER_REGISTRY_URL = "https://index.docker.io"
DEFAULT_DOCKER_REGISTRY_AUTH_URL = "https://auth.docker.io/token"
GET_TOKEN_BY_CF = true