production.yaml.example 27 KB

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