ニジカ投稿局 https://tv.nizika.tv
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1007 lines
34 KiB

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