test.yaml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. listen:
  2. hostname: '0.0.0.0'
  3. port: 9000
  4. webserver:
  5. https: false
  6. rates_limit:
  7. signup:
  8. window: 10 minutes
  9. max: 50
  10. login:
  11. window: 5 minutes
  12. max: 20
  13. api:
  14. window: 10 seconds
  15. max: 500
  16. database:
  17. hostname: 'localhost'
  18. port: 5432
  19. redis:
  20. hostname: 'localhost'
  21. smtp:
  22. hostname: null
  23. port: 1025
  24. tls: false
  25. disable_starttls: true
  26. from_address: 'test-admin@localhost'
  27. username: null
  28. password: null
  29. log:
  30. level: 'debug'
  31. contact_form:
  32. enabled: true
  33. redundancy:
  34. videos:
  35. check_interval: '1 minute'
  36. strategies:
  37. -
  38. size: '1000MB'
  39. min_lifetime: '10 minutes'
  40. strategy: 'most-views'
  41. -
  42. size: '1000MB'
  43. min_lifetime: '10 minutes'
  44. strategy: 'trending'
  45. -
  46. size: '1000MB'
  47. min_lifetime: '10 minutes'
  48. strategy: 'recently-added'
  49. min_views: 1
  50. cache:
  51. previews:
  52. size: 1
  53. captions:
  54. size: 1
  55. signup:
  56. enabled: true
  57. requires_email_verification: false
  58. transcoding:
  59. enabled: true
  60. allow_additional_extensions: false
  61. allow_audio_files: false
  62. threads: 2
  63. resolutions:
  64. 0p: false
  65. 240p: true
  66. 360p: true
  67. 480p: true
  68. 720p: true
  69. 1080p: true
  70. 1440p: true
  71. 2160p: true
  72. hls:
  73. enabled: true
  74. live:
  75. enabled: false
  76. rtmp:
  77. port: 1935
  78. transcoding:
  79. enabled: false
  80. threads: 2
  81. resolutions:
  82. 240p: false
  83. 360p: false
  84. 480p: false
  85. 720p: false
  86. 1080p: false
  87. 1440p: false
  88. 2160p: false
  89. import:
  90. videos:
  91. http:
  92. enabled: true
  93. proxy:
  94. enabled: false
  95. url: ""
  96. torrent:
  97. enabled: true
  98. instance:
  99. default_nsfw_policy: 'display'
  100. plugins:
  101. index:
  102. check_latest_versions_interval: '10 minutes'
  103. search:
  104. # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
  105. # If enabled, the associated group will be able to "escape" from the instance follows
  106. # That means they will be able to follow channels, watch videos, list videos of non followed instances
  107. remote_uri:
  108. users: true
  109. anonymous: false
  110. # Use a third party index instead of your local index, only for search results
  111. # Useful to discover content outside of your instance
  112. search_index:
  113. enabled: false
  114. # URL of the search index, that should use the same search API and routes
  115. # than PeerTube: https://docs.joinpeertube.org/api-rest-reference.html
  116. # You should deploy your own with https://framagit.org/framasoft/peertube/search-index,
  117. # and can use https://search.joinpeertube.org/ for tests, but keep in mind the latter is an unmoderated search index
  118. url: 'http://localhost:3234'
  119. # You can disable local search, so users only use the search index
  120. disable_local_search: false
  121. # If you did not disable local search, you can decide to use the search index by default
  122. is_default_search: true
  123. federation:
  124. videos:
  125. federate_unlisted: true
  126. views:
  127. videos:
  128. remote:
  129. max_age: -1