mirror of
https://github.com/cf-sonr/motr.git
synced 2026-01-12 02:59:13 +00:00
* feat: enhance modularity by relocating core packages * refactor: move chart components to dashboard package * refactor: restructure database access layer * refactor: rename credential descriptor to credentials for clarity * feat: enhance development environment configuration for database interactions * feat: integrate go-task for database migrations * feat: introduce middleware for market data and WebAuthn
65 lines
1.4 KiB
TOML
65 lines
1.4 KiB
TOML
# Top-level configuration
|
|
name = "motr-worker"
|
|
main = "worker.mjs"
|
|
compatibility_date = "2025-04-14"
|
|
|
|
routes = [
|
|
{ pattern = "sonr.id", custom_domain = true },
|
|
]
|
|
|
|
[build]
|
|
command = "devbox run build:worker"
|
|
|
|
[dev]
|
|
port = 6969
|
|
|
|
[observability]
|
|
enabled = true
|
|
|
|
[triggers]
|
|
crons = ["0 */1 * * *"]
|
|
|
|
[[d1_databases]]
|
|
binding = "ACTIVITY_DB"
|
|
database_name = "motr-activity"
|
|
database_id = "a7ccb4bb-c529-4f42-8029-92564a3aecb8"
|
|
|
|
[[d1_databases]]
|
|
binding = "NETWORK_DB"
|
|
database_name = "motr-network"
|
|
database_id = "acb75499-3502-4052-9604-263a913e077a"
|
|
|
|
[[d1_databases]]
|
|
binding = "USERS_DB"
|
|
database_name = "motr-users"
|
|
database_id = "8ed4d399-5932-419c-b92f-9c20d7a36ad2"
|
|
|
|
[[kv_namespaces]]
|
|
binding = "SESSIONS_KV"
|
|
id = "ea5de66fcfc14b5eba170395e29432ee"
|
|
|
|
[[kv_namespaces]]
|
|
binding = "HANDLES_KV"
|
|
id = "271d47087a8842b2aac5ee79cf7bb203"
|
|
|
|
[[r2_buckets]]
|
|
binding = 'PROFILES'
|
|
bucket_name = 'profiles'
|
|
|
|
[vars]
|
|
SONR_CHAIN_ID = 'sonr-testnet-1'
|
|
IPFS_GATEWAY = 'https://ipfs.sonr.land'
|
|
SONR_API_URL = 'https://api.sonr.land'
|
|
SONR_RPC_URL = 'https://rpc.sonr.land'
|
|
SONR_GRPC_URL = 'https://grpc.sonr.land'
|
|
MATRIX_SERVER = 'https://bm.chat'
|
|
MOTR_GATEWAY = 'https://sonr.id'
|
|
MOTR_VAULT = 'https://did.run'
|
|
|
|
[durable_objects]
|
|
bindings = [{name = "VAULT", class_name = "Vault"}]
|
|
|
|
[[migrations]]
|
|
tag = "v1" # Should be unique for each entry
|
|
new_classes = ["Vault"] # List the classes that should be created
|