production.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. listen:
  2. hostname: '0.0.0.0'
  3. port: 9000
  4. # Correspond to your reverse proxy "listen" configuration
  5. webserver:
  6. https: true
  7. hostname: undefined
  8. port: 443
  9. rates_limit:
  10. login:
  11. # 15 attempts in 5 min
  12. window: 5 minutes
  13. max: 15
  14. ask_send_email:
  15. # 3 attempts in 5 min
  16. window: 5 minutes
  17. max: 3
  18. # Proxies to trust to get real client IP
  19. # If you run PeerTube just behind a local proxy (nginx), keep 'loopback'
  20. # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet)
  21. trust_proxy:
  22. - 'loopback'
  23. - 'linklocal'
  24. - 'uniquelocal'
  25. # Your database name will be "peertube"+database.suffix
  26. database:
  27. hostname: 'postgres'
  28. port: 5432
  29. suffix: ''
  30. username: 'postgres'
  31. password: 'postgres'
  32. # Redis server for short time storage
  33. redis:
  34. hostname: 'redis'
  35. port: 6379
  36. auth: null
  37. # From the project root directory
  38. storage:
  39. tmp: '../data/tmp/'
  40. avatars: '../data/avatars/'
  41. videos: '../data/videos/'
  42. redundancy: '../data/redundancy/'
  43. logs: '../data/logs/'
  44. previews: '../data/previews/'
  45. thumbnails: '../data/thumbnails/'
  46. torrents: '../data/torrents/'
  47. captions: '../data/captions/'
  48. cache: '../data/cache/'
  49. plugins: '../data/plugins/'
  50. log:
  51. level: 'info' # debug/info/warning/error
  52. tracker:
  53. enabled: true
  54. reject_too_many_announces: false # false because we have issues with traefik and ws ip/port forwarding
  55. admin:
  56. email: null