config.sample.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. server:
  2. listening_port: 8443
  3. tls:
  4. enabled: false
  5. cert: "/path/to/cert.pem"
  6. key: "/path/to/key.pem"
  7. opts:
  8. - "Access-Control-Allow-Origin: *"
  9. - "Access-Control-Allow-Methods: GET, POST, PUT, DELETE"
  10. - "Access-Control-Allow-Headers: Content-Type, Authorization"
  11. database:
  12. path: "./data/app.db"
  13. log_mode: true
  14. max_open_conns: 10
  15. max_idle_conns: 5
  16. conn_max_lifetime: 300
  17. pragma:
  18. - "journal_mode=WAL"
  19. - "busy_timeout=5000"
  20. - "synchronous=NORMAL"
  21. log:
  22. level: "info" # trace, debug, info, warn, error, fatal, panic
  23. no_color: false
  24. force_colors: true
  25. in_json: false
  26. filter_components:
  27. - "api"
  28. - "db"
  29. - "auth"
  30. - "email"
  31. jwt:
  32. jwt_secret: "your-super-secret-jwt-key-change-this-in-production"
  33. smtp:
  34. host: "smtp.gmail.com"
  35. port: 587
  36. user: "your-email@gmail.com"
  37. pass: "your-app-specific-password"
  38. oauth2:
  39. client_id: "your-oauth-client-id"
  40. client_secret: "your-oauth-client-secret"
  41. redirect_url: "http://localhost:8443/oauth/callback"
  42. auth_url: "https://accounts.google.com/o/oauth2/auth"
  43. token_url: "https://oauth2.googleapis.com/token"
  44. user_info_url: "https://www.googleapis.com/oauth2/v3/userinfo"
  45. hook:
  46. base_url: "https://api.yourwebhookservice.com"
  47. domain: "yourdomain.com"
  48. secret_key: "your-webhook-secret-key"