config.sample.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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: "ssl0.ovh.net"
  35. username: "mail"
  36. password: "pass"
  37. from: "BYOM Service <no-reply@byom.fr>"
  38. # Logging Configuration
  39. logging:
  40. level: "info" # debug, info, warn, error
  41. format: "json" # json or text
  42. output: "stdout" # stdout, file
  43. file_path: "logs/byom.log" # Only used if output is set to file
  44. # Security Configuration
  45. security:
  46. allowed_origins:
  47. - "http://localhost:3000"
  48. - "https://yourdomain.com"
  49. rate_limit:
  50. enabled: true
  51. requests: 100
  52. duration: "1m"
  53. # Admin Configuration
  54. admin:
  55. username: "admin" # Change this in production
  56. password: "admin" # Change this in production
  57. # VPS Plans Configuration
  58. vps_plans:
  59. basic:
  60. name: "Basic"
  61. specs: "1-2-40" # CPU-RAM-Storage
  62. max_instances: 100
  63. pro:
  64. name: "Pro"
  65. specs: "2-4-80"
  66. max_instances: 50
  67. enterprise:
  68. name: "Enterprise"
  69. specs: "16-16-160"
  70. max_instances: 25