config.sample.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Server configuration
  2. server:
  3. host: "0.0.0.0" # Listen on all interfaces
  4. port: 8080 # HTTP port to listen on
  5. tls:
  6. enabled: false # TLS will be handled by Traefik
  7. # Database configuration - Using SQLite
  8. database:
  9. type: "sqlite" # Database type
  10. sqlite:
  11. file: "/app/data/byop.db" # Path inside the container
  12. # Authentication configuration
  13. auth:
  14. private_key: "${JWT_SECRET:-change_this_to_a_secure_random_string}" # Used to sign JWT tokens
  15. token_duration: 3600000000000 # Token validity duration in nanoseconds (1 hour)
  16. cleanup_interval: 86400000000000 # Token cleanup interval in nanoseconds (24 hours)
  17. # Cloud providers configuration
  18. # These values should be set through environment variables in production
  19. providers:
  20. # OVH configuration
  21. ovh:
  22. application_key: "${OVH_APP_KEY:-}"
  23. application_secret: "${OVH_APP_SECRET:-}"
  24. consumer_key: "${OVH_CONSUMER_KEY:-}"
  25. project_id: "${OVH_PROJECT_ID:-}"
  26. region: "${OVH_REGION:-GRA7}"
  27. ssh_username: "${OVH_SSH_USER:-root}"
  28. ssh_key_path: "${OVH_SSH_KEY_PATH:-}"
  29. # # AWS configuration
  30. # aws:
  31. # access_key: "${AWS_ACCESS_KEY:-}"
  32. # secret_key: "${AWS_SECRET_KEY:-}"
  33. # region: "${AWS_REGION:-us-east-1}"
  34. # # Azure configuration
  35. # azure:
  36. # subscription_id: "${AZURE_SUBSCRIPTION_ID:-}"
  37. # tenant_id: "${AZURE_TENANT_ID:-}"
  38. # client_id: "${AZURE_CLIENT_ID:-}"
  39. # client_secret: "${AZURE_CLIENT_SECRET:-}"