-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwrangler.toml
More file actions
52 lines (42 loc) · 1.5 KB
/
Copy pathwrangler.toml
File metadata and controls
52 lines (42 loc) · 1.5 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name = "website2markdown"
main = "src/index.ts"
compatibility_date = "2025-02-14"
compatibility_flags = ["nodejs_compat"]
[browser]
binding = "MYBROWSER"
# KV namespace for caching converted markdown
[[kv_namespaces]]
binding = "CACHE_KV"
id = "ce411570e9734bae989e03c705804c94"
# R2 bucket for storing images
[[r2_buckets]]
binding = "IMAGE_BUCKET"
bucket_name = "md-images"
# D1 database for auth, API keys, and usage metering
[[d1_databases]]
binding = "AUTH_DB"
database_name = "md-auth"
database_id = "15623873-2c54-493a-8639-2428819665ad"
[durable_objects]
bindings = [
{ name = "JOB_COORDINATOR", class_name = "JobCoordinator" }
]
[[migrations]]
tag = "v1"
new_sqlite_classes = ["JobCoordinator"]
[observability]
enabled = true
# Built-in Worker code applies per-IP limits when cf-connecting-ip is present.
# Keep Cloudflare WAF rate limiting enabled as an outer layer.
# Secrets (set via wrangler secret):
# API_TOKEN — Bearer token for POST /api/batch authentication
# PUBLIC_API_TOKEN — optional token for raw API + /api/stream
# CF_ACCOUNT_ID — Cloudflare account ID for Browser Rendering REST API
# CF_API_TOKEN — API token with Browser Rendering - Edit permission
# PAYWALL_RULES_JSON — optional JSON array of runtime paywall rules
# Optional var:
# PAYWALL_RULES_KV_KEY — KV key name containing JSON paywall rules (overrides PAYWALL_RULES_JSON)
# Custom domain configuration — update with your actual domain
# routes = [
# { pattern = "your-domain.example.com/*", zone_name = "example.com" }
# ]