File
Blob: wrangler.jsonc
| 1 | { |
| 2 | "$schema": "node_modules/wrangler/config-schema.json", |
| 3 | "name": "dab", |
| 4 | "main": "src/worker/index.ts", |
| 5 | "compatibility_date": "2026-05-20", |
| 6 | "compatibility_flags": ["nodejs_als"], |
| 7 | "workers_dev": false, |
| 8 | "preview_urls": false, |
| 9 | "observability": { |
| 10 | "enabled": true, |
| 11 | }, |
| 12 | "upload_source_maps": true, |
| 13 | "assets": { |
| 14 | "directory": "dist/client", |
| 15 | "binding": "ASSETS", |
| 16 | "not_found_handling": "single-page-application", |
| 17 | "run_worker_first": ["/*", "!/assets/*"], |
| 18 | }, |
| 19 | "routes": [ |
| 20 | { |
| 21 | "pattern": "dab.limic.dev", |
| 22 | "custom_domain": true, |
| 23 | }, |
| 24 | { |
| 25 | "pattern": "*.dab.limic.dev/*", |
| 26 | "zone_name": "limic.dev", |
| 27 | }, |
| 28 | ], |
| 29 | "vars": { |
| 30 | "LOG_LEVEL": "info", |
| 31 | "CONTROL_PLANE_HOST": "dab.limic.dev", |
| 32 | "SUBJECT_HOST_SUFFIX": ".dab.limic.dev", |
| 33 | "TESSERA_OIDC_ISSUER": "https://auth.limic.dev", |
| 34 | "MAX_FILE_BYTES": "100000000", |
| 35 | "MAX_XML_BODY_BYTES": "1048576", |
| 36 | "MAX_CALENDAR_OBJECT_BYTES": "1048576", |
| 37 | "MAX_ADDRESS_OBJECT_BYTES": "1048576", |
| 38 | "MAX_DAV_DEPTH_INFINITY_NODES": "10000", |
| 39 | "MAX_REPORT_RESULTS": "5000", |
| 40 | "MAX_RECURRENCE_YEARS": "5", |
| 41 | "MAX_RECURRENCE_INSTANCES": "10000", |
| 42 | }, |
| 43 | "d1_databases": [ |
| 44 | { |
| 45 | "binding": "DAV_CONTROL_PLANE", |
| 46 | "database_name": "dab-control-plane", |
| 47 | "database_id": "b156c2e3-5879-4b03-b208-61735908325a", |
| 48 | "migrations_dir": "drizzle/d1", |
| 49 | }, |
| 50 | ], |
| 51 | "r2_buckets": [ |
| 52 | { |
| 53 | "binding": "FILE_BLOBS", |
| 54 | "bucket_name": "dab-file-blobs", |
| 55 | }, |
| 56 | ], |
| 57 | "durable_objects": { |
| 58 | "bindings": [ |
| 59 | { "name": "AUTH", "class_name": "AuthObject" }, |
| 60 | { "name": "FILE_DAV", "class_name": "FileDavObject" }, |
| 61 | { "name": "CAL_DAV", "class_name": "CalDavObject" }, |
| 62 | { "name": "CARD_DAV", "class_name": "CardDavObject" }, |
| 63 | ], |
| 64 | }, |
| 65 | "migrations": [ |
| 66 | { |
| 67 | "tag": "v1", |
| 68 | "new_sqlite_classes": ["AuthObject", "FileDavObject", "CalDavObject", "CardDavObject"], |
| 69 | }, |
| 70 | ], |
| 71 | "queues": { |
| 72 | "producers": [ |
| 73 | { "binding": "BLOB_GC", "queue": "dab-blob-gc" }, |
| 74 | { "binding": "REPAIR_JOBS", "queue": "dab-repair-jobs" }, |
| 75 | ], |
| 76 | "consumers": [ |
| 77 | { "queue": "dab-blob-gc", "max_batch_size": 10, "max_batch_timeout": 5 }, |
| 78 | { "queue": "dab-repair-jobs", "max_batch_size": 5, "max_batch_timeout": 5 }, |
| 79 | ], |
| 80 | }, |
| 81 | "ratelimits": [ |
| 82 | { |
| 83 | "name": "RL_AUTH", |
| 84 | "namespace_id": "83800", |
| 85 | "simple": { "limit": 10, "period": 60 }, |
| 86 | }, |
| 87 | { |
| 88 | "name": "RL_DAV_AUTH", |
| 89 | "namespace_id": "83801", |
| 90 | "simple": { "limit": 30, "period": 60 }, |
| 91 | }, |
| 92 | { |
| 93 | "name": "RL_REPORT", |
| 94 | "namespace_id": "83802", |
| 95 | "simple": { "limit": 60, "period": 60 }, |
| 96 | }, |
| 97 | ], |
| 98 | } |