| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- # SmartBotic Web Server Configuration
- # This file configures the HTTP/WebSocket server for serving the REST API and WebUI
- server:
- # Address to bind to (0.0.0.0 for all interfaces)
- address: "0.0.0.0"
- # Port to listen on (default HTTP port 8080)
- port: 8080
- # Path to WebUI static files
- webui_path: "./webui/dist"
- websocket:
- # WebSocket endpoint path
- path: "/ws"
- cors:
- # Enable CORS headers (useful for development)
- enabled: true
- # Allowed origins (* for all)
- allowed_origins:
- - "*"
- # Allowed HTTP methods
- allowed_methods:
- - "GET"
- - "POST"
- - "PUT"
- - "DELETE"
- - "OPTIONS"
- # Allowed request headers
- allowed_headers:
- - "Content-Type"
- - "Authorization"
- # Allow credentials (cookies, auth headers)
- allow_credentials: false
- # Preflight response cache duration (seconds)
- max_age: 86400
- logging:
- # Log level: trace, debug, info, warn, error, critical, off
- level: "info"
- database:
- # Database gRPC service address
- address: "127.0.0.1:50051"
|