production.yaml.example 32 KB

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