fix: various fixes to sentry-reported errors and more
This commit is contained in:
@@ -3,27 +3,13 @@
|
||||
"type": "object",
|
||||
"description": "Configuration for the Gateway service (WebSocket).",
|
||||
"additionalProperties": false,
|
||||
"required": ["api_host", "admin_reload_secret", "media_proxy_endpoint"],
|
||||
"required": ["admin_reload_secret", "media_proxy_endpoint"],
|
||||
"properties": {
|
||||
"port": {
|
||||
"type": "number",
|
||||
"description": "Port to listen on.",
|
||||
"default": 8771
|
||||
},
|
||||
"rpc_tcp_port": {
|
||||
"type": "number",
|
||||
"description": "Port for API-to-Gateway internal RPC over TCP.",
|
||||
"default": 8772
|
||||
},
|
||||
"api_host": {
|
||||
"type": "string",
|
||||
"description": "Host/Port of the API service to communicate with."
|
||||
},
|
||||
"api_canary_host": {
|
||||
"type": "string",
|
||||
"description": "Host/Port of the Canary API service (optional).",
|
||||
"default": ""
|
||||
},
|
||||
"admin_reload_secret": {
|
||||
"type": "string",
|
||||
"description": "Secret used to trigger code hot-swapping/reloads."
|
||||
|
||||
24
packages/config/src/schema/defs/services/nats.json
Normal file
24
packages/config/src/schema/defs/services/nats.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"nats_services": {
|
||||
"type": "object",
|
||||
"description": "Configuration for NATS messaging.",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"core_url": {
|
||||
"type": "string",
|
||||
"description": "NATS Core server URL for RPC.",
|
||||
"default": "nats://127.0.0.1:4222"
|
||||
},
|
||||
"jetstream_url": {
|
||||
"type": "string",
|
||||
"description": "NATS JetStream server URL for job queues.",
|
||||
"default": "nats://127.0.0.1:4223"
|
||||
},
|
||||
"auth_token": {
|
||||
"type": "string",
|
||||
"description": "Authentication token for NATS connections.",
|
||||
"default": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,12 +7,12 @@
|
||||
"port": {
|
||||
"type": "number",
|
||||
"description": "Port to listen on.",
|
||||
"default": 8080
|
||||
"default": 8088
|
||||
},
|
||||
"host": {
|
||||
"type": "string",
|
||||
"description": "Network interface to bind to.",
|
||||
"default": "0.0.0.0"
|
||||
"concurrency": {
|
||||
"type": "number",
|
||||
"description": "Number of concurrent worker threads.",
|
||||
"default": 1
|
||||
},
|
||||
"data_dir": {
|
||||
"type": "string",
|
||||
@@ -37,42 +37,12 @@
|
||||
"snapshot_zstd_level": {
|
||||
"type": "number",
|
||||
"description": "Zstd compression level for snapshots (1-22).",
|
||||
"minimum": 1,
|
||||
"maximum": 22,
|
||||
"default": 3
|
||||
},
|
||||
"visibility_timeout_backoff_ms": {
|
||||
"type": "number",
|
||||
"description": "Backoff duration in milliseconds for visibility timeouts.",
|
||||
"default": 1000
|
||||
},
|
||||
"max_receive_batch": {
|
||||
"type": "number",
|
||||
"description": "Maximum number of messages to retrieve in a single batch.",
|
||||
"default": 10
|
||||
},
|
||||
"command_buffer": {
|
||||
"type": "number",
|
||||
"description": "Size of the internal command buffer.",
|
||||
"default": 1000
|
||||
},
|
||||
"export_timeout": {
|
||||
"type": "number",
|
||||
"description": "Timeout in milliseconds for data export operations.",
|
||||
"default": 30000
|
||||
},
|
||||
"concurrency": {
|
||||
"type": "number",
|
||||
"description": "Number of concurrent worker threads.",
|
||||
"default": 2
|
||||
},
|
||||
"rate_limit": {
|
||||
"description": "Rate limiting configuration for the Queue service.",
|
||||
"$ref": "#/$defs/rate_limit"
|
||||
},
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "Authentication secret for the Queue service."
|
||||
"description": "Secret for queue API authentication.",
|
||||
"default": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,10 @@
|
||||
"$ref": "#/$defs/s3_service",
|
||||
"default": {}
|
||||
},
|
||||
"nats": {
|
||||
"$ref": "#/$defs/nats_services",
|
||||
"default": {}
|
||||
},
|
||||
"queue": {
|
||||
"$ref": "#/$defs/queue_service",
|
||||
"default": {}
|
||||
|
||||
Reference in New Issue
Block a user