production.yaml.example 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. listen:
  2. hostname: 'localhost'
  3. port: 9000
  4. # Correspond to your reverse proxy server_name/listen configuration
  5. webserver:
  6. https: true
  7. hostname: 'example.com'
  8. port: 443
  9. # Proxies to trust to get real client IP
  10. # If you run PeerTube just behind a local proxy (nginx), keep 'loopback'
  11. # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet)
  12. trust_proxy:
  13. - 'loopback'
  14. # Your database name will be "peertube"+database.suffix
  15. database:
  16. hostname: 'localhost'
  17. port: 5432
  18. suffix: '_prod'
  19. username: 'peertube'
  20. password: 'peertube'
  21. pool:
  22. max: 5
  23. # Redis server for short time storage
  24. # You can also specify a 'socket' path to a unix socket but first need to
  25. # comment out hostname and port
  26. redis:
  27. hostname: 'localhost'
  28. port: 6379
  29. auth: null
  30. db: 0
  31. # SMTP server to send emails
  32. smtp:
  33. hostname: null
  34. port: 465 # If you use StartTLS: 587
  35. username: null
  36. password: null
  37. tls: true # If you use StartTLS: false
  38. disable_starttls: false
  39. ca_file: null # Used for self signed certificates
  40. from_address: 'admin@example.com'
  41. # From the project root directory
  42. storage:
  43. tmp: '/var/www/peertube/storage/tmp/' # Used to download data (imports etc), store uploaded files before processing...
  44. avatars: '/var/www/peertube/storage/avatars/'
  45. videos: '/var/www/peertube/storage/videos/'
  46. redundancy: '/var/www/peertube/storage/videos/'
  47. logs: '/var/www/peertube/storage/logs/'
  48. previews: '/var/www/peertube/storage/previews/'
  49. thumbnails: '/var/www/peertube/storage/thumbnails/'
  50. torrents: '/var/www/peertube/storage/torrents/'
  51. captions: '/var/www/peertube/storage/captions/'
  52. cache: '/var/www/peertube/storage/cache/'
  53. log:
  54. level: 'info' # debug/info/warning/error
  55. search:
  56. # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
  57. # If enabled, the associated group will be able to "escape" from the instance follows
  58. # That means they will be able to follow channels, watch videos, list videos of non followed instances
  59. remote_uri:
  60. users: true
  61. anonymous: false
  62. trending:
  63. videos:
  64. interval_days: 7 # Compute trending videos for the last x days
  65. # Cache remote videos on your server, to help other instances to broadcast the video
  66. # You can define multiple caches using different sizes/strategies
  67. # Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following
  68. redundancy:
  69. videos:
  70. check_interval: '1 hour' # How often you want to check new videos to cache
  71. strategies: # Just uncomment strategies you want
  72. # -
  73. # size: '10GB'
  74. # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
  75. # min_lifetime: '48 hours'
  76. # strategy: 'most-views' # Cache videos that have the most views
  77. # -
  78. # size: '10GB'
  79. # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
  80. # min_lifetime: '48 hours'
  81. # strategy: 'trending' # Cache trending videos
  82. # -
  83. # size: '10GB'
  84. # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
  85. # min_lifetime: '48 hours'
  86. # strategy: 'recently-added' # Cache recently added videos
  87. # min_views: 10 # Having at least x views
  88. ###############################################################################
  89. #
  90. # From this point, all the following keys can be overridden by the web interface
  91. # (local-production.json file). If you need to change some values, prefer to
  92. # use the web interface because the configuration will be automatically
  93. # reloaded without any need to restart PeerTube.
  94. #
  95. # /!\ If you already have a local-production.json file, the modification of the
  96. # following keys will have no effect /!\.
  97. #
  98. ###############################################################################
  99. cache:
  100. previews:
  101. size: 500 # Max number of previews you want to cache
  102. captions:
  103. size: 500 # Max number of video captions/subtitles you want to cache
  104. admin:
  105. email: 'admin@example.com'
  106. signup:
  107. enabled: false
  108. limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
  109. requires_email_verification: false
  110. filters:
  111. cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist
  112. whitelist: []
  113. blacklist: []
  114. user:
  115. # Default value of maximum video BYTES the user can upload (does not take into account transcoded files).
  116. # -1 == unlimited
  117. video_quota: -1
  118. video_quota_daily: -1
  119. # If enabled, the video will be transcoded to mp4 (x264) with "faststart" flag
  120. # In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions.
  121. # Please, do not disable transcoding since many uploaded videos will not work
  122. transcoding:
  123. enabled: true
  124. # Allow your users to upload .mkv, .mov, .avi, .flv videos
  125. allow_additional_extensions: true
  126. threads: 1
  127. resolutions: # Only created if the original video has a higher resolution, uses more storage!
  128. 240p: false
  129. 360p: false
  130. 480p: false
  131. 720p: false
  132. 1080p: false
  133. import:
  134. # Add ability for your users to import remote videos (from YouTube, torrent...)
  135. videos:
  136. http: # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html
  137. enabled: false
  138. torrent: # Magnet URI or torrent file (use classic TCP/UDP/WebSeed to download the file)
  139. enabled: false
  140. # Instance settings
  141. instance:
  142. name: 'PeerTube'
  143. short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.'
  144. description: '' # Support markdown
  145. terms: '' # Support markdown
  146. default_client_route: '/videos/trending'
  147. # By default, "do_not_list" or "blur" or "display" NSFW videos
  148. # Could be overridden per user with a setting
  149. default_nsfw_policy: 'do_not_list'
  150. customizations:
  151. javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime
  152. css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime
  153. # Robot.txt rules. To disallow robots to crawl your instance and disallow indexation of your site, add '/' to "Disallow:'
  154. robots: |
  155. User-agent: *
  156. Disallow:
  157. # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string.
  158. securitytxt:
  159. "# If you would like to report a security issue\n# you may report it to:\nContact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md\nContact: mailto:"
  160. services:
  161. # Cards configuration to format video in Twitter
  162. twitter:
  163. username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published
  164. # If true, a video player will be embedded in the Twitter feed on PeerTube video share
  165. # If false, we use an image link card that will redirect on your PeerTube instance
  166. # Test on https://cards-dev.twitter.com/validator to see if you are whitelisted
  167. whitelisted: false