microbit.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "log_level": "info",
  3. "database": {
  4. "rpc_address": "${DB_ADDRESS:localhost:9004}",
  5. "timeout_ms": 5000,
  6. "max_retries": 3
  7. },
  8. "http": {
  9. "bind_address": "0.0.0.0",
  10. "port": 8090,
  11. "static_files": {
  12. "enabled": true,
  13. "path": "${WEBUI_PATH:webui/dist}"
  14. }
  15. },
  16. "auth": {
  17. "enabled": true,
  18. "jwt_secret": "${JWT_SECRET:change-me-in-production}",
  19. "access_token_lifetime_sec": 900,
  20. "refresh_token_lifetime_sec": 604800,
  21. "password_policy": {
  22. "min_length": 8,
  23. "require_number": true,
  24. "require_special": false
  25. }
  26. },
  27. "smtp": {
  28. "host": "${SMTP_HOST:}",
  29. "port": "${SMTP_PORT:587}",
  30. "username": "${SMTP_USER:}",
  31. "password": "${SMTP_PASSWORD:}",
  32. "from_address": "${SMTP_FROM:noreply@smartbotics.ai}",
  33. "from_name": "Smartbotic",
  34. "use_tls": true
  35. },
  36. "callerai": {
  37. "api_url": "${CALLERAI_API_URL:http://localhost:8080}",
  38. "api_key": "${CALLERAI_API_KEY:}",
  39. "timeout_sec": 30
  40. },
  41. "cors": {
  42. "enabled": true,
  43. "origins": ["*"],
  44. "methods": ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"],
  45. "headers": ["Authorization", "Content-Type", "X-Requested-With"]
  46. },
  47. "rate_limit": {
  48. "enabled": true,
  49. "requests_per_minute": 200
  50. }
  51. }