default.yaml 26 KB

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