production.yaml.example 33 KB

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