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