test.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. 2160p: true
  71. hls:
  72. enabled: true
  73. import:
  74. videos:
  75. http:
  76. enabled: true
  77. proxy:
  78. enabled: true
  79. url: "http://188.165.225.149:7899"
  80. torrent:
  81. enabled: true
  82. instance:
  83. default_nsfw_policy: 'display'
  84. plugins:
  85. index:
  86. check_latest_versions_interval: '10 minutes'
  87. search:
  88. # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
  89. # If enabled, the associated group will be able to "escape" from the instance follows
  90. # That means they will be able to follow channels, watch videos, list videos of non followed instances
  91. remote_uri:
  92. users: true
  93. anonymous: false
  94. # Use a third party index instead of your local index, only for search results
  95. # Useful to discover content outside of your instance
  96. search_index:
  97. enabled: false
  98. # URL of the search index, that should use the same search API and routes
  99. # than PeerTube: https://docs.joinpeertube.org/api-rest-reference.html
  100. # You should deploy your own with https://framagit.org/framasoft/peertube/search-index,
  101. # and can use https://search.joinpeertube.org/ for tests, but keep in mind the latter is an unmoderated search index
  102. url: 'http://localhost:3234'
  103. # You can disable local search, so users only use the search index
  104. disable_local_search: false
  105. # If you did not disable local search, you can decide to use the search index by default
  106. is_default_search: true