1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- # Server Configuration
- server:
- address: "0.0.0.0:8080"
- port: 8080
- tls:
- enabled: false
- cert_file: ""
- key_file: ""
- timeouts:
- read: "15s"
- write: "15s"
- idle: "60s"
- # Database Configuration
- database:
- url: "byom.db" # SQLite database file
- max_open_conns: 25
- max_idle_conns: 5
- conn_max_lifetime: "1h"
- conn_max_idle_time: "30m"
- # Stripe Configuration
- stripe:
- secret_key: "sk_test_your_stripe_secret_key"
- webhook_secret: "whsec_your_stripe_webhook_secret"
- currency: "EUR"
- # OVH Configuration
- ovh:
- endpoint: "ovh-eu"
- app_key: "your_ovh_app_key"
- app_secret: "your_ovh_app_secret"
- consumer_key: "" # Optional, if you're using consumer key authentication
- # Mailer Configuration
- mailer:
- enabled: true
- host: "smtp.example.com"
- port: "587"
- username: "noreply@yourdomain.com"
- password: "your_smtp_password"
- from: "BYOM Service <noreply@yourdomain.com>"
- encryption: "tls"
- # Logging Configuration
- logging:
- level: "info" # debug, info, warn, error
- format: "json" # json or text
- output: "stdout" # stdout, file
- file_path: "logs/byom.log" # Only used if output is set to file
- # Security Configuration
- security:
- allowed_origins:
- - "http://localhost:3000"
- - "https://yourdomain.com"
- rate_limit:
- enabled: true
- requests: 100
- duration: "1m"
- # Admin Configuration
- admin:
- username: "admin" # Change this in production
- password: "admin" # Change this in production
- # VPS Plans Configuration
- vps_plans:
- basic:
- name: "Basic"
- specs: "1-2-40" # CPU-RAM-Storage
- max_instances: 100
- pro:
- name: "Pro"
- specs: "2-4-80"
- max_instances: 50
- enterprise:
- name: "Enterprise"
- specs: "16-16-160"
- max_instances: 25
|