production.yaml.example 25 KB

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