smartbotic-server.yaml 1013 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # SmartBotic Web Server Configuration
  2. # This file configures the HTTP/WebSocket server for serving the REST API and WebUI
  3. server:
  4. # Address to bind to (0.0.0.0 for all interfaces)
  5. address: "0.0.0.0"
  6. # Port to listen on (default HTTP port 8080)
  7. port: 8080
  8. # Path to WebUI static files
  9. webui_path: "./webui/dist"
  10. websocket:
  11. # WebSocket endpoint path
  12. path: "/ws"
  13. cors:
  14. # Enable CORS headers (useful for development)
  15. enabled: true
  16. # Allowed origins (* for all)
  17. allowed_origins:
  18. - "*"
  19. # Allowed HTTP methods
  20. allowed_methods:
  21. - "GET"
  22. - "POST"
  23. - "PUT"
  24. - "DELETE"
  25. - "OPTIONS"
  26. # Allowed request headers
  27. allowed_headers:
  28. - "Content-Type"
  29. - "Authorization"
  30. # Allow credentials (cookies, auth headers)
  31. allow_credentials: false
  32. # Preflight response cache duration (seconds)
  33. max_age: 86400
  34. logging:
  35. # Log level: trace, debug, info, warn, error, critical, off
  36. level: "info"
  37. database:
  38. # Database gRPC service address
  39. address: "127.0.0.1:50051"