-
Notifications
You must be signed in to change notification settings - Fork 4
/
wrangler.toml
32 lines (26 loc) · 1.25 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
main = "./dist/worker.mjs"
compatibility_date = "2023-04-01"
workers_dev = false # Enable it for development purposes, and if you are want a domain ending with .workers.dev
account_id = "your-account-id-here" # Log in dash.cloudflare.com, select an account, go to Workers, and copy Account ID
[build]
command = "npm install && npm run build"
[env.production]
name = "pp-issuer-production"
route = { pattern = "pp-issuer.example.test", custom_domain=true }
[env.production.triggers]
crons = ["0 0 * * *"]
[env.production.vars]
DIRECTORY_CACHE_MAX_AGE_SECONDS = "86400"
ENVIRONMENT = "production"
KEY_LIFESPAN_IN_MS = "172800000" # 48h
KEY_NOT_BEFORE_DELAY_IN_MS = "7200000" # 2h
MINIMUM_FRESHEST_KEYS = "1"
ROTATION_CRON_STRING = "30 12 * * *"
SENTRY_SAMPLE_RATE = "0" # Between 0-1 if you log errors on Sentry. 0 disables Sentry logging. Configuration is done through Workers Secrets
SERVICE = "pp-issuer-production"
[[env.production.r2_buckets]]
bucket_name = 'pp-issuer-keys-production' # wrangler r2 bucket create pp-issuer-keys-production. Pricing and free tier described on https://developers.cloudflare.com/r2/pricing
preview_bucket_name = 'pp-issuer-keys-production-local'
binding = 'ISSUANCE_KEYS'
[env.production.version_metadata]
binding = "VERSION_METADATA"