config.sample.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Server Configuration
  2. server:
  3. address: "0.0.0.0:8080"
  4. port: 8080
  5. tls:
  6. enabled: false
  7. cert_file: ""
  8. key_file: ""
  9. timeouts:
  10. read: "15s"
  11. write: "15s"
  12. idle: "60s"
  13. # Database Configuration
  14. database:
  15. url: "byom.db" # SQLite database file
  16. max_open_conns: 25
  17. max_idle_conns: 5
  18. conn_max_lifetime: "1h"
  19. conn_max_idle_time: "30m"
  20. # Stripe Configuration
  21. stripe:
  22. secret_key: "sk_test_your_stripe_secret_key"
  23. webhook_secret: "whsec_your_stripe_webhook_secret"
  24. currency: "EUR"
  25. # OVH Configuration
  26. ovh:
  27. endpoint: "ovh-eu"
  28. app_key: "your_ovh_app_key"
  29. app_secret: "your_ovh_app_secret"
  30. consumer_key: "" # Optional, if you're using consumer key authentication
  31. # Mailer Configuration
  32. mailer:
  33. enabled: true
  34. host: "smtp.example.com"
  35. port: "587"
  36. username: "noreply@yourdomain.com"
  37. password: "your_smtp_password"
  38. from: "BYOM Service <noreply@yourdomain.com>"
  39. encryption: "tls"
  40. # Logging Configuration
  41. logging:
  42. level: "info" # debug, info, warn, error
  43. format: "json" # json or text
  44. output: "stdout" # stdout, file
  45. file_path: "logs/byom.log" # Only used if output is set to file
  46. # Security Configuration
  47. security:
  48. allowed_origins:
  49. - "http://localhost:3000"
  50. - "https://yourdomain.com"
  51. rate_limit:
  52. enabled: true
  53. requests: 100
  54. duration: "1m"
  55. # Admin Configuration
  56. admin:
  57. username: "admin" # Change this in production
  58. password: "admin" # Change this in production
  59. # VPS Plans Configuration
  60. vps_plans:
  61. basic:
  62. name: "Basic"
  63. specs: "1-2-40" # CPU-RAM-Storage
  64. max_instances: 100
  65. pro:
  66. name: "Pro"
  67. specs: "2-4-80"
  68. max_instances: 50
  69. enterprise:
  70. name: "Enterprise"
  71. specs: "16-16-160"
  72. max_instances: 25