config.sample.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Server configuration
  2. server:
  3. host: "0.0.0.0" # Listen on all interfaces
  4. # port: 443 # HTTP port to listen on
  5. tls: # TLS/HTTPS configuration
  6. enabled: false # Set to true to enable HTTPS
  7. cert_file: "/path/to/cert.pem"
  8. key_file: "/path/to/key.pem"
  9. # Database configuration
  10. database:
  11. host: "localhost"
  12. port: 5432
  13. username: "byop_user"
  14. password: "secure_password"
  15. name: "byop_db"
  16. ssl_mode: "disable" # Options: disable, require, verify-ca, verify-full
  17. # Authentication configuration
  18. auth:
  19. private_key: "your-jwt-signing-key-here" # Used to sign JWT tokens
  20. token_duration: 3600000000000 # Token validity duration in nanoseconds (1 hour)
  21. cleanup_interval: 86400000000000 # Token cleanup interval in nanoseconds (24 hours)
  22. # Cloud providers configuration
  23. providers:
  24. # OVH configuration
  25. ovh:
  26. application_key: "your-ovh-app-key"
  27. application_secret: "your-ovh-app-secret"
  28. consumer_key: "your-ovh-consumer-key"
  29. project_id: "your-ovh-project-id"
  30. region: "GRA7" # Optional default region
  31. # AWS configuration
  32. aws:
  33. access_key: "your-aws-access-key"
  34. secret_key: "your-aws-secret-key"
  35. region: "us-east-1"
  36. # Azure configuration
  37. azure:
  38. subscription_id: "your-azure-subscription-id"
  39. tenant_id: "your-azure-tenant-id"
  40. client_id: "your-azure-client-id"
  41. client_secret: "your-azure-client-secret"