-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwrangler.test.toml
More file actions
32 lines (27 loc) · 1 KB
/
wrangler.test.toml
File metadata and controls
32 lines (27 loc) · 1 KB
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
# see documentation at https://redirection.io/documentation/developer-documentation/cloudflare-workers-integration#manually-deploying-the-cloudflare-worker
account_id = "account_id"
name = "worker_name_on_cloudflare"
route = { pattern = "*example.com/*", zone_id = "abcdef0123456789abcdef0123456789" }
workers_dev = false
compatibility_date = "2022-01-20"
main = "build/worker/shim.mjs"
[vars]
REDIRECTIONIO_ADD_HEADER_RULE_IDS = "true"
REDIRECTIONIO_INSTANCE_NAME = "instance_name_on_redirectionio"
REDIRECTIONIO_TIMEOUT = 100
REDIRECTIONIO_VERSION = "redirection-io-cloudflare/dev"
REDIRECTIONIO_CACHE_TIME = 0
REDIRECTIONIO_TOKEN = "redirection_io_project_key"
REDIRECTIONIO_AGENT_HOST = "http://127.0.0.1:11302"
[build]
command = "cargo install -q worker-build && RUSTFLAGS='--cfg getrandom_backend=\"wasm_js\"' worker-build --release"
[dev]
ip = "0.0.0.0"
port = 28080
local_protocol = "http"
upstream_protocol = "http"
host = "127.0.0.1:11080"
[[rules]]
globs = ["**/*.wasm"]
type = "CompiledWasm"
fallthrough = true