default.yaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. # /!\ YOU SHOULD NOT UPDATE THIS FILE, USE production.yaml instead /!\ #
  2. listen:
  3. hostname: '127.0.0.1'
  4. port: 9000
  5. webserver:
  6. https: false
  7. hostname: 'localhost'
  8. port: 9000
  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: '_dev'
  19. username: 'peertube'
  20. password: 'peertube'
  21. pool:
  22. max: 5
  23. # You can also specify a 'socket' path to a unix socket but first need to
  24. # comment out hostname and port
  25. redis:
  26. hostname: 'localhost'
  27. port: 6379
  28. auth: null
  29. db: 0
  30. smtp:
  31. hostname: null
  32. port: 465
  33. username: null
  34. password: null
  35. tls: true
  36. disable_starttls: false
  37. ca_file: null # Used for self signed certificates
  38. from_address: 'admin@example.com'
  39. # From the project root directory
  40. storage:
  41. avatars: 'storage/avatars/'
  42. videos: 'storage/videos/'
  43. logs: 'storage/logs/'
  44. previews: 'storage/previews/'
  45. thumbnails: 'storage/thumbnails/'
  46. torrents: 'storage/torrents/'
  47. captions: 'storage/captions/'
  48. cache: 'storage/cache/'
  49. log:
  50. level: 'info' # debug/info/warning/error
  51. search:
  52. remote_uri: # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
  53. users: true
  54. anonymous: false
  55. trending:
  56. videos:
  57. interval_days: 7 # Compute trending videos for the last x days
  58. # Cache remote videos on your server, to help other instances to broadcast the video
  59. # You can define multiple caches using different sizes/strategies
  60. # Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following
  61. redundancy:
  62. videos:
  63. # -
  64. # size: '10GB'
  65. # strategy: 'most-views' # Cache videos that have the most views
  66. # -
  67. # size: '10GB'
  68. # strategy: 'trending' # Cache trending videos
  69. # -
  70. # size: '10GB'
  71. # strategy: 'recently-added' # Cache recently added videos
  72. # minViews: 10 # Having at least x views
  73. cache:
  74. previews:
  75. size: 500 # Max number of previews you want to cache
  76. captions:
  77. size: 500 # Max number of video captions/subtitles you want to cache
  78. admin:
  79. email: 'admin@example.com' # Your personal email as administrator
  80. signup:
  81. enabled: false
  82. limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
  83. requires_email_verification: false
  84. filters:
  85. cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist
  86. whitelist: []
  87. blacklist: []
  88. user:
  89. # Default value of maximum video BYTES the user can upload (does not take into account transcoded files).
  90. # -1 == unlimited
  91. video_quota: -1
  92. video_quota_daily: -1
  93. # If enabled, the video will be transcoded to mp4 (x264) with "faststart" flag
  94. # In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions.
  95. # Please, do not disable transcoding since many uploaded videos will not work
  96. transcoding:
  97. enabled: true
  98. threads: 1
  99. resolutions: # Only created if the original video has a higher resolution, uses more storage!
  100. 240p: false
  101. 360p: false
  102. 480p: false
  103. 720p: false
  104. 1080p: false
  105. import:
  106. # Add ability for your users to import remote videos (from YouTube, torrent...)
  107. videos:
  108. http: # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html
  109. enabled: false
  110. torrent: # Magnet URI or torrent file (use classic TCP/UDP/WebSeed to download the file)
  111. enabled: false
  112. instance:
  113. name: 'PeerTube'
  114. short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.'
  115. description: 'Welcome to this PeerTube instance!' # Support markdown
  116. terms: 'No terms for now.' # Support markdown
  117. default_client_route: '/videos/trending'
  118. # By default, "do_not_list" or "blur" or "display" NSFW videos
  119. # Could be overridden per user with a setting
  120. default_nsfw_policy: 'do_not_list'
  121. customizations:
  122. javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime
  123. css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime
  124. # Robot.txt rules. To disallow robots to crawl your instance and disallow indexation of your site, add '/' to "Disallow:'
  125. robots: |
  126. User-agent: *
  127. Disallow: ''
  128. # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string.
  129. securitytxt:
  130. "# 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:"
  131. services:
  132. # Cards configuration to format video in Twitter
  133. twitter:
  134. username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published
  135. # If true, a video player will be embedded in the Twitter feed on PeerTube video share
  136. # If false, we use an image link card that will redirect on your PeerTube instance
  137. # Change it to "true", and then test on https://cards-dev.twitter.com/validator to see if you are whitelisted
  138. whitelisted: false