production.yaml.example 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951
  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. ip_view_expiration: '1 hour'
  326. # How often the web browser sends "is watching" information to the server
  327. # Increase the value or set null to disable it if you plan to have many viewers
  328. watching_interval:
  329. # Non logged-in viewers
  330. anonymous: '5 seconds'
  331. # Logged-in users of your instance
  332. # Unlike anonymous viewers, this endpoint is also used to store the "last watched video timecode" for your users
  333. # Increasing this value reduces the accuracy of the video resume
  334. users: '5 seconds'
  335. # Used to get country location of views of local videos
  336. geo_ip:
  337. enabled: true
  338. country:
  339. database_url: 'https://dbip.mirror.framasoft.org/files/dbip-country-lite-latest.mmdb'
  340. city:
  341. database_url: 'https://dbip.mirror.framasoft.org/files/dbip-city-lite-latest.mmdb'
  342. plugins:
  343. # The website PeerTube will ask for available PeerTube plugins and themes
  344. # This is an unmoderated plugin index, so only install plugins/themes you trust
  345. index:
  346. enabled: true
  347. check_latest_versions_interval: '12 hours' # How often you want to check new plugins/themes versions
  348. url: 'https://packages.joinpeertube.org'
  349. federation:
  350. # Some federated software such as Mastodon may require an HTTP signature to access content
  351. sign_federated_fetches: true
  352. videos:
  353. federate_unlisted: false
  354. # Add a weekly job that cleans up remote AP interactions on local videos (shares, rates and comments)
  355. # It removes objects that do not exist anymore, and potentially fix their URLs
  356. cleanup_remote_interactions: true
  357. peertube:
  358. check_latest_version:
  359. # Check and notify admins of new PeerTube versions
  360. enabled: true
  361. # You can use a custom URL if your want, that respect the format behind https://joinpeertube.org/api/v1/versions.json
  362. url: 'https://joinpeertube.org/api/v1/versions.json'
  363. webadmin:
  364. configuration:
  365. edition:
  366. # Set this to false if you don't want to allow config edition in the web interface by instance admins
  367. allowed: true
  368. # XML, Atom or JSON feeds
  369. feeds:
  370. videos:
  371. # Default number of videos displayed in feeds
  372. count: 20
  373. comments:
  374. # Default number of comments displayed in feeds
  375. count: 20
  376. remote_runners:
  377. # Consider jobs that are processed by a remote runner as stalled after this period of time without any update
  378. stalled_jobs:
  379. live: '30 seconds'
  380. vod: '2 minutes'
  381. thumbnails:
  382. # When automatically generating a thumbnail from the video
  383. generation_from_video:
  384. # How many frames to analyze at the middle of the video to select the most appropriate one
  385. # Increasing this value will increase CPU and memory usage when generating the thumbnail, especially for high video resolution
  386. # Minimum value is 2
  387. frames_to_analyze: 50
  388. stats:
  389. # Display registration requests stats (average response time, total requests...)
  390. registration_requests:
  391. enabled: true
  392. # Display abuses stats (average response time, total abuses...)
  393. abuses:
  394. enabled: true
  395. total_moderators:
  396. enabled: true
  397. total_admins:
  398. enabled: true
  399. ###############################################################################
  400. #
  401. # From this point, almost all following keys can be overridden by the web interface
  402. # (local-production.json file). If you need to change some values, prefer to
  403. # use the web interface because the configuration will be automatically
  404. # reloaded without any need to restart PeerTube
  405. #
  406. # /!\ If you already have a local-production.json file, modification of some of
  407. # the following keys will have no effect /!\
  408. #
  409. ###############################################################################
  410. cache:
  411. previews:
  412. size: 500 # Max number of previews you want to cache
  413. captions:
  414. size: 500 # Max number of video captions/subtitles you want to cache
  415. torrents:
  416. size: 500 # Max number of video torrents you want to cache
  417. storyboards:
  418. size: 500 # Max number of video storyboards you want to cache
  419. admin:
  420. # Used to generate the root user at first startup
  421. # And to receive emails from the contact form
  422. email: 'admin@example.com'
  423. contact_form:
  424. enabled: true
  425. signup:
  426. enabled: false
  427. limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
  428. minimum_age: 16 # Used to configure the signup form
  429. # Users fill a form to register so moderators can accept/reject the registration
  430. requires_approval: true
  431. requires_email_verification: false
  432. filters:
  433. cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist
  434. whitelist: []
  435. blacklist: []
  436. user:
  437. history:
  438. videos:
  439. # Enable or disable video history by default for new users.
  440. enabled: true
  441. # Default value of maximum video bytes the user can upload
  442. # Does not take into account transcoded files or account export archives (that can include user uploaded files)
  443. # Byte format is supported ("1GB" etc)
  444. # -1 == unlimited
  445. video_quota: -1
  446. video_quota_daily: -1
  447. default_channel_name: 'Main $1 channel' # The placeholder $1 is used to represent the user's username
  448. video_channels:
  449. max_per_user: 20 # Allows each user to create up to 20 video channels.
  450. # If enabled, the video will be transcoded to mp4 (x264) with `faststart` flag
  451. # In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions
  452. # Please, do not disable transcoding since many uploaded videos will not work
  453. transcoding:
  454. enabled: true
  455. original_file:
  456. # If false the uploaded file is deleted after transcoding
  457. # If yes it is not deleted but moved in a dedicated folder or object storage
  458. keep: false
  459. # Allow your users to upload .mkv, .mov, .avi, .wmv, .flv, .f4v, .3g2, .3gp, .mts, m2ts, .mxf, .nut videos
  460. allow_additional_extensions: true
  461. # If a user uploads an audio file, PeerTube will create a video by merging the preview file and the audio file
  462. allow_audio_files: true
  463. # Enable remote runners to transcode your videos
  464. # If enabled, your instance won't transcode the videos itself
  465. # At least 1 remote runner must be configured to transcode your videos
  466. remote_runners:
  467. enabled: false
  468. # Amount of threads used by ffmpeg for 1 local transcoding job
  469. threads: 1
  470. # Amount of local transcoding jobs to execute in parallel
  471. concurrency: 1
  472. # Choose the local transcoding profile
  473. # New profiles can be added by plugins
  474. # Available in core PeerTube: 'default'
  475. profile: 'default'
  476. resolutions: # Only created if the original video has a higher resolution, uses more storage!
  477. 0p: false # audio-only (creates mp4 without video stream, always created when enabled)
  478. 144p: false
  479. 240p: false
  480. 360p: false
  481. 480p: false
  482. 720p: false
  483. 1080p: false
  484. 1440p: false
  485. 2160p: false
  486. # Transcode and keep original resolution, even if it's above your maximum enabled resolution
  487. always_transcode_original_resolution: true
  488. # Generate videos in a web compatible format
  489. # If you also enabled the hls format, it will multiply videos storage by 2
  490. # If disabled, breaks federation with PeerTube instances < 2.1
  491. web_videos:
  492. enabled: false
  493. # /!\ Requires ffmpeg >= 4.1
  494. # Generate HLS playlists and fragmented MP4 files. Better playback than with Web Videos:
  495. # * Resolution change is smoother
  496. # * Faster playback in particular with long videos
  497. # * More stable playback (less bugs/infinite loading)
  498. # If you also enabled the web videos format, it will multiply videos storage by 2
  499. hls:
  500. enabled: true
  501. live:
  502. enabled: false
  503. # Limit lives duration
  504. # -1 == unlimited
  505. max_duration: -1 # For example: '5 hours'
  506. # Limit max number of live videos created on your instance
  507. # -1 == unlimited
  508. max_instance_lives: 20
  509. # Limit max number of live videos created by a user on your instance
  510. # -1 == unlimited
  511. max_user_lives: 3
  512. # Allow your users to save a replay of their live
  513. # PeerTube will transcode segments in a video file
  514. # If the user daily/total quota is reached, PeerTube will stop the live
  515. # /!\ transcoding.enabled (and not live.transcoding.enabled) has to be true to create a replay
  516. allow_replay: true
  517. # Allow your users to change latency settings (small latency/default/high latency)
  518. # Small latency live streams cannot use P2P
  519. # High latency live streams can increase P2P ratio
  520. latency_setting:
  521. enabled: true
  522. # Your firewall should accept traffic from this port in TCP if you enable live
  523. rtmp:
  524. enabled: true
  525. # Listening hostname/port for RTMP 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: 1935
  530. # Public hostname of your RTMP server
  531. # Use null to use the same value than `webserver.hostname`
  532. public_hostname: null
  533. rtmps:
  534. enabled: false
  535. # Listening hostname/port for RTMPS server
  536. # '::' to listen on IPv6 and IPv4, '0.0.0.0' to listen on IPv4
  537. # Use null to automatically listen on '::' if IPv6 is available, or '0.0.0.0' otherwise
  538. hostname: null
  539. port: 1936
  540. # Absolute paths
  541. key_file: ''
  542. cert_file: ''
  543. # Public hostname of your RTMPS server
  544. # Use null to use the same value than `webserver.hostname`
  545. public_hostname: null
  546. # Allow to transcode the live streaming in multiple live resolutions
  547. transcoding:
  548. enabled: true
  549. # Enable remote runners to transcode your videos
  550. # If enabled, your instance won't transcode the videos itself
  551. # At least 1 remote runner must be configured to transcode your videos
  552. remote_runners:
  553. enabled: false
  554. # Amount of threads used by ffmpeg per live when using local transcoding
  555. threads: 2
  556. # Choose the local transcoding profile
  557. # New profiles can be added by plugins
  558. # Available in core PeerTube: 'default'
  559. profile: 'default'
  560. resolutions:
  561. 144p: false
  562. 240p: false
  563. 360p: false
  564. 480p: false
  565. 720p: false
  566. 1080p: false
  567. 1440p: false
  568. 2160p: false
  569. # Also transcode original resolution, even if it's above your maximum enabled resolution
  570. always_transcode_original_resolution: true
  571. video_studio:
  572. # Enable video edition by users (cut, add intro/outro, add watermark etc)
  573. # If enabled, users can create transcoding tasks as they wish
  574. enabled: false
  575. # Enable remote runners to transcode studio tasks
  576. # If enabled, your instance won't transcode the videos itself
  577. # At least 1 remote runner must be configured to transcode your videos
  578. remote_runners:
  579. enabled: false
  580. video_file:
  581. update:
  582. # Add ability for users to replace the video file of an existing video
  583. enabled: false
  584. import:
  585. # Add ability for your users to import remote videos (from YouTube, torrent...)
  586. videos:
  587. # Amount of import jobs to execute in parallel
  588. concurrency: 1
  589. # Set a custom video import timeout to not block import queue
  590. timeout: '2 hours'
  591. # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html
  592. http:
  593. # We recommend to use a HTTP proxy if you enable HTTP import to prevent private URL access from this server
  594. # See https://docs.joinpeertube.org/maintain/configuration#security for more information
  595. enabled: false
  596. youtube_dl_release:
  597. # Direct download URL to youtube-dl binary
  598. # Github releases API is also supported
  599. # Examples:
  600. # * https://api.github.com/repos/ytdl-org/youtube-dl/releases
  601. # * https://api.github.com/repos/yt-dlp/yt-dlp/releases
  602. # * https://yt-dl.org/downloads/latest/youtube-dl
  603. url: 'https://api.github.com/repos/yt-dlp/yt-dlp/releases'
  604. # Release binary name: 'yt-dlp' or 'youtube-dl'
  605. name: 'yt-dlp'
  606. # Path to the python binary to execute for youtube-dl or yt-dlp
  607. python_path: '/usr/bin/python3'
  608. # IPv6 is very strongly rate-limited on most sites supported by youtube-dl
  609. force_ipv4: false
  610. # Magnet URI or torrent file (use classic TCP/UDP/WebSeed to download the file)
  611. torrent:
  612. # We recommend to only enable magnet URI/torrent import if you trust your users
  613. # See https://docs.joinpeertube.org/maintain/configuration#security for more information
  614. enabled: false
  615. # Add ability for your users to synchronize their channels with external channels, playlists, etc
  616. video_channel_synchronization:
  617. enabled: false
  618. max_per_user: 10
  619. check_interval: 1 hour
  620. # Number of latest published videos to check and to potentially import when syncing a channel
  621. videos_limit_per_synchronization: 10
  622. # Max number of videos to import when the user asks for full sync
  623. full_sync_videos_limit: 1000
  624. users:
  625. # Video quota is checked on import so the user doesn't upload a too big archive file
  626. # Video quota (daily quota is not taken into account) is also checked for each video when PeerTube is processing the import
  627. enabled: true
  628. export:
  629. users:
  630. # Allow users to export their PeerTube data in a .zip for backup or re-import
  631. # Only one export at a time is allowed per user
  632. enabled: true
  633. # Max size of the current user quota to accept or not the export
  634. # Goal of this setting is to not store too big archive file on your server disk
  635. max_user_video_quota: 10GB
  636. # How long PeerTube should keep the user export
  637. export_expiration: '2 days'
  638. auto_blacklist:
  639. # New videos automatically blacklisted so moderators can review before publishing
  640. videos:
  641. of_users:
  642. enabled: false
  643. # Instance settings
  644. instance:
  645. name: 'PeerTube'
  646. short_description: 'PeerTube, an ActivityPub-federated video streaming platform using P2P directly in your web browser.'
  647. description: 'Welcome to this PeerTube instance!' # Support markdown
  648. terms: 'No terms for now.' # Support markdown
  649. code_of_conduct: '' # Supports markdown
  650. # Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc
  651. moderation_information: '' # Supports markdown
  652. # Why did you create this instance?
  653. creation_reason: '' # Supports Markdown
  654. # Who is behind the instance? A single person? A non profit?
  655. administrator: '' # Supports Markdown
  656. # How long do you plan to maintain this instance?
  657. maintenance_lifetime: '' # Supports Markdown
  658. # How will you pay the PeerTube instance server? With your own funds? With users donations? Advertising?
  659. business_model: '' # Supports Markdown
  660. # If you want to explain on what type of hardware your PeerTube instance runs
  661. # Example: '2 vCore, 2GB RAM...'
  662. hardware_information: '' # Supports Markdown
  663. # What are the main languages of your instance? To interact with your users for example
  664. # Uncomment or add the languages you want
  665. # List of supported languages: https://peertube.cpy.re/api/v1/videos/languages
  666. languages:
  667. # - en
  668. # - es
  669. # - fr
  670. # You can specify the main categories of your instance (dedicated to music, gaming or politics etc)
  671. # Uncomment or add the category ids you want
  672. # List of supported categories: https://peertube.cpy.re/api/v1/videos/categories
  673. categories:
  674. # - 1 # Music
  675. # - 2 # Films
  676. # - 3 # Vehicles
  677. # - 4 # Art
  678. # - 5 # Sports
  679. # - 6 # Travels
  680. # - 7 # Gaming
  681. # - 8 # People
  682. # - 9 # Comedy
  683. # - 10 # Entertainment
  684. # - 11 # News & Politics
  685. # - 12 # How To
  686. # - 13 # Education
  687. # - 14 # Activism
  688. # - 15 # Science & Technology
  689. # - 16 # Animals
  690. # - 17 # Kids
  691. # - 18 # Food
  692. default_client_route: '/videos/trending'
  693. # Whether or not the instance is dedicated to NSFW content
  694. # Enabling it will allow other administrators to know that you are mainly federating sensitive content
  695. # Moreover, the NSFW checkbox on video upload will be automatically checked by default
  696. is_nsfw: false
  697. # By default, `do_not_list` or `blur` or `display` NSFW videos
  698. # Could be overridden per user with a setting
  699. default_nsfw_policy: 'do_not_list'
  700. customizations:
  701. javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime
  702. css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime
  703. # Robot.txt rules. To disallow robots to crawl your instance and disallow indexation of your site, add `/` to `Disallow:`
  704. robots: |
  705. User-agent: *
  706. Disallow:
  707. # /.well-known/security.txt rules. This endpoint is cached, so you may have to wait a few hours before viewing your changes
  708. # To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string
  709. securitytxt: |
  710. Contact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md
  711. Expires: 2025-12-31T11:00:00.000Z'
  712. services:
  713. # Cards configuration to format video in Twitter/X
  714. # All other social media (Facebook, Mastodon, etc.) are supported out of the box
  715. twitter:
  716. # Indicates the Twitter/X account for the website or platform where the content was published
  717. # This is just an information injected in HTML that is required by Twitter/X
  718. username: '@Chocobozzz'
  719. followers:
  720. instance:
  721. # Allow or not other instances to follow yours
  722. enabled: true
  723. # Whether or not an administrator must manually validate a new follower
  724. manual_approval: false
  725. followings:
  726. instance:
  727. # If you want to automatically follow back new instance followers
  728. # If this option is enabled, use the mute feature instead of deleting followings
  729. # /!\ Don't enable this if you don't have a reactive moderation team /!\
  730. auto_follow_back:
  731. enabled: false
  732. # If you want to automatically follow instances of the public index
  733. # If this option is enabled, use the mute feature instead of deleting followings
  734. # /!\ Don't enable this if you don't have a reactive moderation team /!\
  735. auto_follow_index:
  736. enabled: false
  737. # Host your own using https://framagit.org/framasoft/peertube/instances-peertube#peertube-auto-follow
  738. index_url: ''
  739. theme:
  740. default: 'default'
  741. broadcast_message:
  742. enabled: false
  743. message: '' # Support markdown
  744. level: 'info' # 'info' | 'warning' | 'error'
  745. dismissable: false
  746. search:
  747. # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
  748. # If enabled, the associated group will be able to "escape" from the instance follows
  749. # That means they will be able to follow channels, watch videos, list videos of non followed instances
  750. remote_uri:
  751. users: true
  752. anonymous: false
  753. # Use a third party index instead of your local index, only for search results
  754. # Useful to discover content outside of your instance
  755. # If you enable search_index, you must enable remote_uri search for users
  756. # If you do not enable remote_uri search for anonymous user, your instance will redirect the user on the origin instance
  757. # instead of loading the video locally
  758. search_index:
  759. enabled: false
  760. # URL of the search index, that should use the same search API and routes
  761. # than PeerTube: https://docs.joinpeertube.org/api-rest-reference.html
  762. # You should deploy your own with https://framagit.org/framasoft/peertube/search-index,
  763. # and can use https://search.joinpeertube.org/ for tests, but keep in mind the latter is an unmoderated search index
  764. url: ''
  765. # You can disable local search in the client, so users only use the search index
  766. disable_local_search: false
  767. # If you did not disable local search in the client, you can decide to use the search index by default
  768. is_default_search: false
  769. # PeerTube client/interface configuration
  770. client:
  771. videos:
  772. miniature:
  773. # By default PeerTube client displays author username
  774. prefer_author_display_name: false
  775. display_author_avatar: false
  776. resumable_upload:
  777. # Max size of upload chunks, e.g. '90MB'
  778. # If null, it will be calculated based on network speed
  779. max_chunk_size: null
  780. menu:
  781. login:
  782. # If you enable only one external auth plugin
  783. # You can automatically redirect your users on this external platform when they click on the login button
  784. redirect_on_single_external_auth: false
  785. storyboards:
  786. # Generate storyboards of local videos using ffmpeg so users can see the video preview in the player while scrubbing the video
  787. enabled: true