default.yaml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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. 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. # Your database name will be "peertube"+database.suffix
  24. database:
  25. hostname: 'localhost'
  26. port: 5432
  27. suffix: '_dev'
  28. username: 'peertube'
  29. password: 'peertube'
  30. pool:
  31. max: 5
  32. # You can also specify a 'socket' path to a unix socket but first need to
  33. # comment out hostname and port
  34. redis:
  35. hostname: 'localhost'
  36. port: 6379
  37. auth: null
  38. db: 0
  39. smtp:
  40. hostname: null
  41. port: 465
  42. username: null
  43. password: null
  44. tls: true
  45. disable_starttls: false
  46. ca_file: null # Used for self signed certificates
  47. from_address: 'admin@example.com'
  48. email:
  49. body:
  50. signature: "PeerTube"
  51. object:
  52. prefix: "[PeerTube]"
  53. # From the project root directory
  54. storage:
  55. tmp: 'storage/tmp/' # Used to download data (imports etc), store uploaded files before processing...
  56. avatars: 'storage/avatars/'
  57. videos: 'storage/videos/'
  58. streaming_playlists: 'storage/streaming-playlists/'
  59. redundancy: 'storage/redundancy/'
  60. logs: 'storage/logs/'
  61. previews: 'storage/previews/'
  62. thumbnails: 'storage/thumbnails/'
  63. torrents: 'storage/torrents/'
  64. captions: 'storage/captions/'
  65. cache: 'storage/cache/'
  66. log:
  67. level: 'info' # debug/info/warning/error
  68. rotation:
  69. enabled : true # Enabled by default, if disabled make sure that 'storage.logs' is pointing to a folder handled by logrotate
  70. search:
  71. # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
  72. # If enabled, the associated group will be able to "escape" from the instance follows
  73. # That means they will be able to follow channels, watch videos, list videos of non followed instances
  74. remote_uri:
  75. users: true
  76. anonymous: false
  77. trending:
  78. videos:
  79. interval_days: 7 # Compute trending videos for the last x days
  80. # Cache remote videos on your server, to help other instances to broadcast the video
  81. # You can define multiple caches using different sizes/strategies
  82. # Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following
  83. redundancy:
  84. videos:
  85. check_interval: '1 hour' # How often you want to check new videos to cache
  86. strategies: # Just uncomment strategies you want
  87. # -
  88. # size: '10GB'
  89. # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
  90. # min_lifetime: '48 hours'
  91. # strategy: 'most-views' # Cache videos that have the most views
  92. # -
  93. # size: '10GB'
  94. # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
  95. # min_lifetime: '48 hours'
  96. # strategy: 'trending' # Cache trending videos
  97. # -
  98. # size: '10GB'
  99. # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
  100. # min_lifetime: '48 hours'
  101. # strategy: 'recently-added' # Cache recently added videos
  102. # min_views: 10 # Having at least x views
  103. csp:
  104. enabled: false
  105. report_only: true # CSP directives are still being tested, so disable the report only mode at your own risk!
  106. report_uri:
  107. tracker:
  108. # If you disable the tracker, you disable the P2P aspect of PeerTube
  109. enabled: true
  110. # Only handle requests on your videos.
  111. # If you set this to false it means you have a public tracker.
  112. # Then, it is possible that clients overload your instance with external torrents
  113. private: true
  114. # Reject peers that do a lot of announces (could improve privacy of TCP/UDP peers)
  115. reject_too_many_announces: false
  116. history:
  117. videos:
  118. # If you want to limit users videos history
  119. # -1 means there is no limitations
  120. # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database)
  121. max_age: -1
  122. views:
  123. videos:
  124. # PeerTube creates a database entry every hour for each video to track views over a period of time
  125. # This is used in particular by the Trending page
  126. # PeerTube could remove old remote video views if you want to reduce your database size (video view counter will not be altered)
  127. # -1 means no cleanup
  128. # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database)
  129. remote:
  130. max_age: -1
  131. cache:
  132. previews:
  133. size: 500 # Max number of previews you want to cache
  134. captions:
  135. size: 500 # Max number of video captions/subtitles you want to cache
  136. admin:
  137. # Used to generate the root user at first startup
  138. # And to receive emails from the contact form
  139. email: 'admin@example.com'
  140. contact_form:
  141. enabled: true
  142. signup:
  143. enabled: false
  144. limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
  145. requires_email_verification: false
  146. filters:
  147. cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist
  148. whitelist: []
  149. blacklist: []
  150. user:
  151. # Default value of maximum video BYTES the user can upload (does not take into account transcoded files).
  152. # -1 == unlimited
  153. video_quota: -1
  154. video_quota_daily: -1
  155. # If enabled, the video will be transcoded to mp4 (x264) with "faststart" flag
  156. # In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions.
  157. # Please, do not disable transcoding since many uploaded videos will not work
  158. transcoding:
  159. enabled: true
  160. # Allow your users to upload .mkv, .mov, .avi, .flv videos
  161. allow_additional_extensions: true
  162. # If a user uploads an audio file, PeerTube will create a video by merging the preview file and the audio file
  163. allow_audio_files: true
  164. threads: 1
  165. resolutions: # Only created if the original video has a higher resolution, uses more storage!
  166. 240p: false
  167. 360p: false
  168. 480p: false
  169. 720p: false
  170. 1080p: false
  171. 2160p: false
  172. # /!\ EXPERIMENTAL /!\
  173. # /!\ Requires ffmpeg >= 4
  174. # Generate HLS playlists and fragmented MP4 files. Better playback than with WebTorrent:
  175. # * Resolution change is smoother
  176. # * Faster playback in particular with long videos
  177. # * More stable playback (less bugs/infinite loading)
  178. # /!\ Multiplies videos storage by 2 /!\
  179. hls:
  180. enabled: false
  181. import:
  182. # Add ability for your users to import remote videos (from YouTube, torrent...)
  183. videos:
  184. http: # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html
  185. enabled: false
  186. torrent: # Magnet URI or torrent file (use classic TCP/UDP/WebSeed to download the file)
  187. enabled: false
  188. auto_blacklist:
  189. # New videos automatically blacklisted so moderators can review before publishing
  190. videos:
  191. of_users:
  192. enabled: false
  193. instance:
  194. name: 'PeerTube'
  195. short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.'
  196. description: 'Welcome to this PeerTube instance!' # Support markdown
  197. terms: 'No terms for now.' # Support markdown
  198. default_client_route: '/videos/trending'
  199. # Whether or not the instance is dedicated to NSFW content
  200. # Enabling it will allow other administrators to know that you are mainly federating sensitive content
  201. # Moreover, the NSFW checkbox on video upload will be automatically checked by default
  202. is_nsfw: false
  203. # By default, "do_not_list" or "blur" or "display" NSFW videos
  204. # Could be overridden per user with a setting
  205. default_nsfw_policy: 'do_not_list'
  206. customizations:
  207. javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime
  208. css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime
  209. # Robot.txt rules. To disallow robots to crawl your instance and disallow indexation of your site, add '/' to "Disallow:'
  210. robots: |
  211. User-agent: *
  212. Disallow:
  213. # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string.
  214. securitytxt:
  215. "# 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:"
  216. services:
  217. # Cards configuration to format video in Twitter
  218. twitter:
  219. username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published
  220. # If true, a video player will be embedded in the Twitter feed on PeerTube video share
  221. # If false, we use an image link card that will redirect on your PeerTube instance
  222. # Change it to "true", and then test on https://cards-dev.twitter.com/validator to see if you are whitelisted
  223. whitelisted: false
  224. followers:
  225. instance:
  226. # Allow or not other instances to follow yours
  227. enabled: true
  228. # Whether or not an administrator must manually validate a new follower
  229. manual_approval: false