production.yaml.example 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  1. listen:
  2. hostname: 'localhost'
  3. port: 9000
  4. # Correspond to your reverse proxy server_name/listen configuration (i.e., your public PeerTube instance URL)
  5. webserver:
  6. https: true
  7. hostname: 'example.com'
  8. port: 443
  9. rates_limit:
  10. api:
  11. # 50 attempts in 10 seconds
  12. window: 10 seconds
  13. max: 50
  14. login:
  15. # 15 attempts in 5 min
  16. window: 5 minutes
  17. max: 15
  18. signup:
  19. # 2 attempts in 5 min (only succeeded attempts are taken into account)
  20. window: 5 minutes
  21. max: 2
  22. ask_send_email:
  23. # 3 attempts in 5 min
  24. window: 5 minutes
  25. max: 3
  26. # Proxies to trust to get real client IP
  27. # If you run PeerTube just behind a local proxy (nginx), keep 'loopback'
  28. # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet)
  29. trust_proxy:
  30. - 'loopback'
  31. # Your database name will be database.name OR 'peertube'+database.suffix
  32. database:
  33. hostname: 'localhost'
  34. port: 5432
  35. ssl: false
  36. suffix: '_prod'
  37. username: 'peertube'
  38. password: 'peertube'
  39. pool:
  40. max: 5
  41. # Redis server for short time storage
  42. # You can also specify a 'socket' path to a unix socket but first need to
  43. # set 'hostname' and 'port' to null
  44. redis:
  45. hostname: 'localhost'
  46. port: 6379
  47. auth: null
  48. db: 0
  49. # SMTP server to send emails
  50. smtp:
  51. # smtp or sendmail
  52. transport: smtp
  53. # Path to sendmail command. Required if you use sendmail transport
  54. sendmail: null
  55. hostname: null
  56. port: 465 # If you use StartTLS: 587
  57. username: null
  58. password: null
  59. tls: true # If you use StartTLS: false
  60. disable_starttls: false
  61. ca_file: null # Used for self signed certificates
  62. from_address: 'admin@example.com'
  63. email:
  64. body:
  65. signature: 'PeerTube'
  66. subject:
  67. prefix: '[PeerTube]'
  68. # Update default PeerTube values
  69. # Set by API when the field is not provided and put as default value in client
  70. defaults:
  71. # Change default values when publishing a video (upload/import/go Live)
  72. publish:
  73. download_enabled: true
  74. comments_enabled: true
  75. # public = 1, unlisted = 2, private = 3, internal = 4
  76. privacy: 1
  77. # CC-BY = 1, CC-SA = 2, CC-ND = 3, CC-NC = 4, CC-NC-SA = 5, CC-NC-ND = 6, Public Domain = 7
  78. # You can also choose a custom licence value added by a plugin
  79. # No licence by default
  80. licence: null
  81. p2p:
  82. # Enable P2P by default
  83. # Can be enabled/disabled by anonymous users and logged in users
  84. webapp:
  85. enabled: true
  86. embed:
  87. enabled: true
  88. # From the project root directory
  89. storage:
  90. tmp: '/var/www/peertube/storage/tmp/' # Use to download data (imports etc), store uploaded files before and during processing...
  91. bin: '/var/www/peertube/storage/bin/'
  92. avatars: '/var/www/peertube/storage/avatars/'
  93. videos: '/var/www/peertube/storage/videos/'
  94. streaming_playlists: '/var/www/peertube/storage/streaming-playlists/'
  95. redundancy: '/var/www/peertube/storage/redundancy/'
  96. logs: '/var/www/peertube/storage/logs/'
  97. previews: '/var/www/peertube/storage/previews/'
  98. thumbnails: '/var/www/peertube/storage/thumbnails/'
  99. torrents: '/var/www/peertube/storage/torrents/'
  100. captions: '/var/www/peertube/storage/captions/'
  101. cache: '/var/www/peertube/storage/cache/'
  102. plugins: '/var/www/peertube/storage/plugins/'
  103. # Overridable client files in client/dist/assets/images:
  104. # - logo.svg
  105. # - favicon.png
  106. # - default-playlist.jpg
  107. # - default-avatar-account.png
  108. # - default-avatar-video-channel.png
  109. # - and icons/*.png (PWA)
  110. # Could contain for example assets/images/favicon.png
  111. # If the file exists, peertube will serve it
  112. # If not, peertube will fallback to the default file
  113. client_overrides: '/var/www/peertube/storage/client-overrides/'
  114. object_storage:
  115. enabled: false
  116. # Without protocol, will default to HTTPS
  117. endpoint: '' # 's3.amazonaws.com' or 's3.fr-par.scw.cloud' for example
  118. region: 'us-east-1'
  119. # Set this ACL on each uploaded object
  120. upload_acl: 'public'
  121. credentials:
  122. # You can also use AWS_ACCESS_KEY_ID env variable
  123. access_key_id: ''
  124. # You can also use AWS_SECRET_ACCESS_KEY env variable
  125. secret_access_key: ''
  126. # Maximum amount to upload in one request to object storage
  127. max_upload_part: 2GB
  128. streaming_playlists:
  129. bucket_name: 'streaming-playlists'
  130. # Allows setting all buckets to the same value but with a different prefix
  131. prefix: '' # Example: 'streaming-playlists:'
  132. # Base url for object URL generation, scheme and host will be replaced by this URL
  133. # Useful when you want to use a CDN/external proxy
  134. base_url: '' # Example: 'https://mirror.example.com'
  135. # Same settings but for webtorrent videos
  136. videos:
  137. bucket_name: 'videos'
  138. prefix: ''
  139. base_url: ''
  140. log:
  141. level: 'info' # 'debug' | 'info' | 'warn' | 'error'
  142. rotation:
  143. enabled : true # Enabled by default, if disabled make sure that 'storage.logs' is pointing to a folder handled by logrotate
  144. max_file_size: 12MB
  145. max_files: 20
  146. anonymize_ip: false
  147. log_ping_requests: true
  148. prettify_sql: false
  149. trending:
  150. videos:
  151. interval_days: 7 # Compute trending videos for the last x days
  152. algorithms:
  153. enabled:
  154. - 'hot' # adaptation of Reddit's 'Hot' algorithm
  155. - 'most-viewed' # default, used initially by PeerTube as the trending page
  156. - 'most-liked'
  157. default: 'most-viewed'
  158. # Cache remote videos on your server, to help other instances to broadcast the video
  159. # You can define multiple caches using different sizes/strategies
  160. # Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following
  161. redundancy:
  162. videos:
  163. check_interval: '1 hour' # How often you want to check new videos to cache
  164. strategies: # Just uncomment strategies you want
  165. # -
  166. # size: '10GB'
  167. # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
  168. # min_lifetime: '48 hours'
  169. # strategy: 'most-views' # Cache videos that have the most views
  170. # -
  171. # size: '10GB'
  172. # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
  173. # min_lifetime: '48 hours'
  174. # strategy: 'trending' # Cache trending videos
  175. # -
  176. # size: '10GB'
  177. # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
  178. # min_lifetime: '48 hours'
  179. # strategy: 'recently-added' # Cache recently added videos
  180. # min_views: 10 # Having at least x views
  181. # Other instances that duplicate your content
  182. remote_redundancy:
  183. videos:
  184. # 'nobody': Do not accept remote redundancies
  185. # 'anybody': Accept remote redundancies from anybody
  186. # 'followings': Accept redundancies from instance followings
  187. accept_from: 'anybody'
  188. csp:
  189. enabled: false
  190. report_only: true # CSP directives are still being tested, so disable the report only mode at your own risk!
  191. report_uri:
  192. security:
  193. # Set the X-Frame-Options header to help to mitigate clickjacking attacks
  194. frameguard:
  195. enabled: true
  196. tracker:
  197. # If you disable the tracker, you disable the P2P aspect of PeerTube
  198. enabled: true
  199. # Only handle requests on your videos
  200. # If you set this to false it means you have a public tracker
  201. # Then, it is possible that clients overload your instance with external torrents
  202. private: true
  203. # Reject peers that do a lot of announces (could improve privacy of TCP/UDP peers)
  204. reject_too_many_announces: false
  205. history:
  206. videos:
  207. # If you want to limit users videos history
  208. # -1 means there is no limitations
  209. # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database)
  210. max_age: -1
  211. views:
  212. videos:
  213. # PeerTube creates a database entry every hour for each video to track views over a period of time
  214. # This is used in particular by the Trending page
  215. # PeerTube could remove old remote video views if you want to reduce your database size (video view counter will not be altered)
  216. # -1 means no cleanup
  217. # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database)
  218. remote:
  219. max_age: '30 days'
  220. # PeerTube buffers local video views before updating and federating the video
  221. local_buffer_update_interval: '30 minutes'
  222. ip_view_expiration: '1 hour'
  223. # Used to get country location of views of local videos
  224. geo_ip:
  225. enabled: true
  226. country:
  227. database_url: 'https://dbip.mirror.framasoft.org/files/dbip-country-lite-latest.mmdb'
  228. plugins:
  229. # The website PeerTube will ask for available PeerTube plugins and themes
  230. # This is an unmoderated plugin index, so only install plugins/themes you trust
  231. index:
  232. enabled: true
  233. check_latest_versions_interval: '12 hours' # How often you want to check new plugins/themes versions
  234. url: 'https://packages.joinpeertube.org'
  235. federation:
  236. videos:
  237. federate_unlisted: false
  238. # Add a weekly job that cleans up remote AP interactions on local videos (shares, rates and comments)
  239. # It removes objects that do not exist anymore, and potentially fix their URLs
  240. cleanup_remote_interactions: true
  241. peertube:
  242. check_latest_version:
  243. # Check and notify admins of new PeerTube versions
  244. enabled: true
  245. # You can use a custom URL if your want, that respect the format behind https://joinpeertube.org/api/v1/versions.json
  246. url: 'https://joinpeertube.org/api/v1/versions.json'
  247. webadmin:
  248. configuration:
  249. edition:
  250. # Set this to false if you don't want to allow config edition in the web interface by instance admins
  251. allowed: true
  252. ###############################################################################
  253. #
  254. # From this point, all the following keys can be overridden by the web interface
  255. # (local-production.json file). If you need to change some values, prefer to
  256. # use the web interface because the configuration will be automatically
  257. # reloaded without any need to restart PeerTube
  258. #
  259. # /!\ If you already have a local-production.json file, the modification of the
  260. # following keys will have no effect /!\
  261. #
  262. ###############################################################################
  263. cache:
  264. previews:
  265. size: 500 # Max number of previews you want to cache
  266. captions:
  267. size: 500 # Max number of video captions/subtitles you want to cache
  268. torrents:
  269. size: 500 # Max number of video torrents you want to cache
  270. admin:
  271. # Used to generate the root user at first startup
  272. # And to receive emails from the contact form
  273. email: 'admin@example.com'
  274. contact_form:
  275. enabled: true
  276. signup:
  277. enabled: false
  278. limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
  279. minimum_age: 16 # Used to configure the signup form
  280. requires_email_verification: false
  281. filters:
  282. cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist
  283. whitelist: []
  284. blacklist: []
  285. user:
  286. # Default value of maximum video bytes the user can upload (does not take into account transcoded files)
  287. # Byte format is supported ("1GB" etc)
  288. # -1 == unlimited
  289. video_quota: -1
  290. video_quota_daily: -1
  291. video_channels:
  292. max_per_user: 20 # Allows each user to create up to 20 video channels.
  293. # If enabled, the video will be transcoded to mp4 (x264) with `faststart` flag
  294. # In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions
  295. # Please, do not disable transcoding since many uploaded videos will not work
  296. transcoding:
  297. enabled: true
  298. # Allow your users to upload .mkv, .mov, .avi, .wmv, .flv, .f4v, .3g2, .3gp, .mts, m2ts, .mxf, .nut videos
  299. allow_additional_extensions: true
  300. # If a user uploads an audio file, PeerTube will create a video by merging the preview file and the audio file
  301. allow_audio_files: true
  302. # Amount of threads used by ffmpeg for 1 transcoding job
  303. threads: 1
  304. # Amount of transcoding jobs to execute in parallel
  305. concurrency: 1
  306. # Choose the transcoding profile
  307. # New profiles can be added by plugins
  308. # Available in core PeerTube: 'default'
  309. profile: 'default'
  310. resolutions: # Only created if the original video has a higher resolution, uses more storage!
  311. 0p: false # audio-only (creates mp4 without video stream, always created when enabled)
  312. 144p: false
  313. 240p: false
  314. 360p: false
  315. 480p: false
  316. 720p: false
  317. 1080p: false
  318. 1440p: false
  319. 2160p: false
  320. # Generate videos in a WebTorrent format (what we do since the first PeerTube release)
  321. # If you also enabled the hls format, it will multiply videos storage by 2
  322. # If disabled, breaks federation with PeerTube instances < 2.1
  323. webtorrent:
  324. enabled: false
  325. # /!\ Requires ffmpeg >= 4.1
  326. # Generate HLS playlists and fragmented MP4 files. Better playback than with WebTorrent:
  327. # * Resolution change is smoother
  328. # * Faster playback in particular with long videos
  329. # * More stable playback (less bugs/infinite loading)
  330. # If you also enabled the webtorrent format, it will multiply videos storage by 2
  331. hls:
  332. enabled: true
  333. live:
  334. enabled: false
  335. # Limit lives duration
  336. # -1 == unlimited
  337. max_duration: -1 # For example: '5 hours'
  338. # Limit max number of live videos created on your instance
  339. # -1 == unlimited
  340. max_instance_lives: 20
  341. # Limit max number of live videos created by a user on your instance
  342. # -1 == unlimited
  343. max_user_lives: 3
  344. # Allow your users to save a replay of their live
  345. # PeerTube will transcode segments in a video file
  346. # If the user daily/total quota is reached, PeerTube will stop the live
  347. # /!\ transcoding.enabled (and not live.transcoding.enabled) has to be true to create a replay
  348. allow_replay: true
  349. # Allow your users to change latency settings (small latency/default/high latency)
  350. # Small latency live streams cannot use P2P
  351. # High latency live streams can increase P2P ratio
  352. latency_setting:
  353. enabled: true
  354. # Your firewall should accept traffic from this port in TCP if you enable live
  355. rtmp:
  356. enabled: true
  357. # Listening hostname/port for RTMP server
  358. # '::' to listen on IPv6 and IPv4, '0.0.0.0' to listen on IPv4
  359. # Use null to automatically listen on '::' if IPv6 is available, or '0.0.0.0' otherwise
  360. hostname: null
  361. port: 1935
  362. # Public hostname of your RTMP server
  363. # Use null to use the same value than `webserver.hostname`
  364. public_hostname: null
  365. rtmps:
  366. enabled: false
  367. # Listening hostname/port for RTMPS server
  368. # '::' to listen on IPv6 and IPv4, '0.0.0.0' to listen on IPv4
  369. # Use null to automatically listen on '::' if IPv6 is available, or '0.0.0.0' otherwise
  370. hostname: null
  371. port: 1936
  372. # Absolute paths
  373. key_file: ''
  374. cert_file: ''
  375. # Public hostname of your RTMPS server
  376. # Use null to use the same value than `webserver.hostname`
  377. public_hostname: null
  378. # Allow to transcode the live streaming in multiple live resolutions
  379. transcoding:
  380. enabled: true
  381. threads: 2
  382. # Choose the transcoding profile
  383. # New profiles can be added by plugins
  384. # Available in core PeerTube: 'default'
  385. profile: 'default'
  386. resolutions:
  387. 144p: false
  388. 240p: false
  389. 360p: false
  390. 480p: false
  391. 720p: false
  392. 1080p: false
  393. 1440p: false
  394. 2160p: false
  395. video_studio:
  396. # Enable video edition by users (cut, add intro/outro, add watermark etc)
  397. # If enabled, users can create transcoding tasks as they wish
  398. enabled: false
  399. import:
  400. # Add ability for your users to import remote videos (from YouTube, torrent...)
  401. videos:
  402. # Amount of import jobs to execute in parallel
  403. concurrency: 1
  404. # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html
  405. http:
  406. # We recommend to use a HTTP proxy if you enable HTTP import to prevent private URL access from this server
  407. # See https://docs.joinpeertube.org/maintain-configuration?id=security for more information
  408. enabled: false
  409. youtube_dl_release:
  410. # Direct download URL to youtube-dl binary
  411. # Github releases API is also supported
  412. # Examples:
  413. # * https://api.github.com/repos/ytdl-org/youtube-dl/releases
  414. # * https://api.github.com/repos/yt-dlp/yt-dlp/releases
  415. url: 'https://yt-dl.org/downloads/latest/youtube-dl'
  416. # youtube-dl binary name
  417. # yt-dlp is also supported
  418. name: 'youtube-dl'
  419. # Path to the python binary to execute for youtube-dl or yt-dlp
  420. python_path: '/usr/bin/python3'
  421. # IPv6 is very strongly rate-limited on most sites supported by youtube-dl
  422. force_ipv4: false
  423. # Magnet URI or torrent file (use classic TCP/UDP/WebSeed to download the file)
  424. torrent:
  425. # We recommend to only enable magnet URI/torrent import if you trust your users
  426. # See https://docs.joinpeertube.org/maintain-configuration?id=security for more information
  427. enabled: false
  428. auto_blacklist:
  429. # New videos automatically blacklisted so moderators can review before publishing
  430. videos:
  431. of_users:
  432. enabled: false
  433. # Instance settings
  434. instance:
  435. name: 'PeerTube'
  436. short_description: 'PeerTube, an ActivityPub-federated video streaming platform using P2P directly in your web browser.'
  437. description: 'Welcome to this PeerTube instance!' # Support markdown
  438. terms: 'No terms for now.' # Support markdown
  439. code_of_conduct: '' # Supports markdown
  440. # Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc
  441. moderation_information: '' # Supports markdown
  442. # Why did you create this instance?
  443. creation_reason: '' # Supports Markdown
  444. # Who is behind the instance? A single person? A non profit?
  445. administrator: '' # Supports Markdown
  446. # How long do you plan to maintain this instance?
  447. maintenance_lifetime: '' # Supports Markdown
  448. # How will you pay the PeerTube instance server? With your own funds? With users donations? Advertising?
  449. business_model: '' # Supports Markdown
  450. # If you want to explain on what type of hardware your PeerTube instance runs
  451. # Example: '2 vCore, 2GB RAM...'
  452. hardware_information: '' # Supports Markdown
  453. # What are the main languages of your instance? To interact with your users for example
  454. # Uncomment or add the languages you want
  455. # List of supported languages: https://peertube.cpy.re/api/v1/videos/languages
  456. languages:
  457. # - en
  458. # - es
  459. # - fr
  460. # You can specify the main categories of your instance (dedicated to music, gaming or politics etc)
  461. # Uncomment or add the category ids you want
  462. # List of supported categories: https://peertube.cpy.re/api/v1/videos/categories
  463. categories:
  464. # - 1 # Music
  465. # - 2 # Films
  466. # - 3 # Vehicles
  467. # - 4 # Art
  468. # - 5 # Sports
  469. # - 6 # Travels
  470. # - 7 # Gaming
  471. # - 8 # People
  472. # - 9 # Comedy
  473. # - 10 # Entertainment
  474. # - 11 # News & Politics
  475. # - 12 # How To
  476. # - 13 # Education
  477. # - 14 # Activism
  478. # - 15 # Science & Technology
  479. # - 16 # Animals
  480. # - 17 # Kids
  481. # - 18 # Food
  482. default_client_route: '/videos/trending'
  483. # Whether or not the instance is dedicated to NSFW content
  484. # Enabling it will allow other administrators to know that you are mainly federating sensitive content
  485. # Moreover, the NSFW checkbox on video upload will be automatically checked by default
  486. is_nsfw: false
  487. # By default, `do_not_list` or `blur` or `display` NSFW videos
  488. # Could be overridden per user with a setting
  489. default_nsfw_policy: 'do_not_list'
  490. customizations:
  491. javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime
  492. css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime
  493. # Robot.txt rules. To disallow robots to crawl your instance and disallow indexation of your site, add `/` to `Disallow:`
  494. robots: |
  495. User-agent: *
  496. Disallow:
  497. # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string
  498. securitytxt:
  499. '# 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:'
  500. services:
  501. # Cards configuration to format video in Twitter
  502. twitter:
  503. username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published
  504. # If true, a video player will be embedded in the Twitter feed on PeerTube video share
  505. # If false, we use an image link card that will redirect on your PeerTube instance
  506. # Change it to `true`, and then test on https://cards-dev.twitter.com/validator to see if you are whitelisted
  507. whitelisted: false
  508. followers:
  509. instance:
  510. # Allow or not other instances to follow yours
  511. enabled: true
  512. # Whether or not an administrator must manually validate a new follower
  513. manual_approval: false
  514. followings:
  515. instance:
  516. # If you want to automatically follow back new instance followers
  517. # If this option is enabled, use the mute feature instead of deleting followings
  518. # /!\ Don't enable this if you don't have a reactive moderation team /!\
  519. auto_follow_back:
  520. enabled: false
  521. # If you want to automatically follow instances of the public index
  522. # If this option is enabled, use the mute feature instead of deleting followings
  523. # /!\ Don't enable this if you don't have a reactive moderation team /!\
  524. auto_follow_index:
  525. enabled: false
  526. # Host your own using https://framagit.org/framasoft/peertube/instances-peertube#peertube-auto-follow
  527. index_url: ''
  528. theme:
  529. default: 'default'
  530. broadcast_message:
  531. enabled: false
  532. message: '' # Support markdown
  533. level: 'info' # 'info' | 'warning' | 'error'
  534. dismissable: false
  535. search:
  536. # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
  537. # If enabled, the associated group will be able to "escape" from the instance follows
  538. # That means they will be able to follow channels, watch videos, list videos of non followed instances
  539. remote_uri:
  540. users: true
  541. anonymous: false
  542. # Use a third party index instead of your local index, only for search results
  543. # Useful to discover content outside of your instance
  544. # If you enable search_index, you must enable remote_uri search for users
  545. # If you do not enable remote_uri search for anonymous user, your instance will redirect the user on the origin instance
  546. # instead of loading the video locally
  547. search_index:
  548. enabled: false
  549. # URL of the search index, that should use the same search API and routes
  550. # than PeerTube: https://docs.joinpeertube.org/api-rest-reference.html
  551. # You should deploy your own with https://framagit.org/framasoft/peertube/search-index,
  552. # and can use https://search.joinpeertube.org/ for tests, but keep in mind the latter is an unmoderated search index
  553. url: ''
  554. # You can disable local search, so users only use the search index
  555. disable_local_search: false
  556. # If you did not disable local search, you can decide to use the search index by default
  557. is_default_search: false
  558. # PeerTube client/interface configuration
  559. client:
  560. videos:
  561. miniature:
  562. # By default PeerTube client displays author username
  563. prefer_author_display_name: false
  564. display_author_avatar: false
  565. resumable_upload:
  566. # Max size of upload chunks, e.g. '90MB'
  567. # If null, it will be calculated based on network speed
  568. max_chunk_size: null
  569. menu:
  570. login:
  571. # If you enable only one external auth plugin
  572. # You can automatically redirect your users on this external platform when they click on the login button
  573. redirect_on_single_external_auth: false