|
| 1 | +# Deployment environment sent to connected services. |
| 2 | +# Valid values: development, staging, production. |
| 3 | +environment: <%= env('AQUILA_ENVIRONMENT', 'development') %> |
| 4 | + |
| 5 | +# Startup mode. Static loads flows from a local file; dynamic synchronizes with Sagittarius. |
| 6 | +# Valid values: static, dynamic. |
| 7 | +mode: <%= env('AQUILA_MODE', 'dynamic') %> |
| 8 | + |
| 9 | +# Default tracing filter. RUST_LOG takes precedence when it is set. |
| 10 | +log_level: <%= env('AQUILA_LOG_LEVEL', 'info') %> |
| 11 | + |
| 12 | +# NATS server and JetStream key-value bucket used for flow storage. |
| 13 | +nats: |
| 14 | + url: <%= env('AQUILA_NATS_URL', 'nats://localhost:4222') %> |
| 15 | + bucket: <%= env('AQUILA_NATS_BUCKET', 'flow_store') %> |
| 16 | + |
| 17 | +# Settings used only in static mode. |
| 18 | +static_config: |
| 19 | + # JSON flow export loaded during startup. |
| 20 | + flow_path: <%= env('AQUILA_STATIC_FLOW_PATH', './flowExport.json') %> |
| 21 | + |
| 22 | +# Settings used only in dynamic mode. |
| 23 | +dynamic_config: |
| 24 | + # Sagittarius gRPC endpoint. |
| 25 | + backend_url: <%= env!('AQUILA_BACKEND_URL') %> |
| 26 | + |
| 27 | + # Authentication token for Sagittarius. |
| 28 | + # AQUILA_BACKEND_TOKEN overrides this value and should be used for deployed secrets. |
| 29 | + backend_token: <%= env!('AQUILA_BACKEND_TOKEN') %> |
| 30 | + |
| 31 | + # Timeout for unary Sagittarius RPCs, in seconds. |
| 32 | + backend_unary_timeout_secs: <%= env('AQUILA_BACKEND_UNARY_TIMEOUT_SECS', '5') %> |
| 33 | + |
| 34 | +# Aquila gRPC server bind settings. |
| 35 | +grpc: |
| 36 | + host: <%= env('AQUILA_GRPC_HOST', '127.0.0.1') %> |
| 37 | + port: <%= env('AQUILA_GRPC_PORT', '8081') %> |
| 38 | + |
| 39 | + # Expose the standard gRPC health service. |
| 40 | + health_service: <%= env('AQUILA_GRPC_HEALTH_SERVICE', 'false') %> |
| 41 | + |
| 42 | +# Runtime heartbeat state-transition timing, in seconds. |
| 43 | +runtime_status: |
| 44 | + # Time without a heartbeat before a runtime becomes NOT_RESPONDING. |
| 45 | + not_responding_after_secs: <%= env('AQUILA_RUNTIME_NOT_RESPONDING_AFTER_SECS', '90') %> |
| 46 | + |
| 47 | + # Additional time in NOT_RESPONDING before a runtime becomes STOPPED. |
| 48 | + stopped_after_not_responding_secs: <%= env('AQUILA_RUNTIME_STOPPED_AFTER_NOT_RESPONDING_SECS', '180') %> |
| 49 | + |
| 50 | + # Frequency of runtime heartbeat checks. |
| 51 | + monitor_interval_secs: <%= env('AQUILA_RUNTIME_MONITOR_INTERVAL_SECS', '30') %> |
0 commit comments