]>
Commit | Line | Data |
---|---|---|
552cc9d6 | 1 | listen: |
a4152bed | 2 | hostname: '127.0.0.1' |
552cc9d6 C |
3 | port: 9000 |
4 | ||
d8658f0f | 5 | # Correspond to your reverse proxy server_name/listen configuration (i.e., your public PeerTube instance URL) |
f1f4732f | 6 | webserver: |
d478d83d | 7 | https: true |
3737bbaf | 8 | hostname: 'example.com' |
d478d83d | 9 | port: 443 |
825a5d9c | 10 | |
a3e5f804 | 11 | # Secrets you need to generate the first time you run PeerTube |
dce2aba1 | 12 | secrets: |
1ea868a9 | 13 | # Generate one using `openssl rand -hex 32` |
a3e5f804 C |
14 | peertube: '' |
15 | ||
c342726a | 16 | rates_limit: |
c1340a6a C |
17 | api: |
18 | # 50 attempts in 10 seconds | |
19 | window: 10 seconds | |
20 | max: 50 | |
c342726a YB |
21 | login: |
22 | # 15 attempts in 5 min | |
23 | window: 5 minutes | |
24 | max: 15 | |
c1340a6a C |
25 | signup: |
26 | # 2 attempts in 5 min (only succeeded attempts are taken into account) | |
27 | window: 5 minutes | |
28 | max: 2 | |
c342726a YB |
29 | ask_send_email: |
30 | # 3 attempts in 5 min | |
31 | window: 5 minutes | |
32 | max: 3 | |
42b40636 C |
33 | receive_client_log: |
34 | # 10 attempts in 10 min | |
35 | window: 10 minutes | |
36 | max: 10 | |
c342726a | 37 | |
490b595a C |
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 | ||
97b6428a | 44 | # Your database name will be database.name OR 'peertube'+database.suffix |
825a5d9c | 45 | database: |
552cc9d6 C |
46 | hostname: 'localhost' |
47 | port: 5432 | |
b0ce7c39 | 48 | ssl: false |
feb4bdfd | 49 | suffix: '_prod' |
6c05c149 C |
50 | username: 'peertube' |
51 | password: 'peertube' | |
1c3386e8 RK |
52 | pool: |
53 | max: 5 | |
552cc9d6 | 54 | |
95540ed2 | 55 | # Redis server for short time storage |
19f7b248 | 56 | # You can also specify a 'socket' path to a unix socket but first need to |
ec2fa0d0 | 57 | # set 'hostname' and 'port' to null |
94a5ff8a C |
58 | redis: |
59 | hostname: 'localhost' | |
60 | port: 6379 | |
61 | auth: null | |
30c82f0d | 62 | db: 0 |
94a5ff8a | 63 | |
95540ed2 | 64 | # SMTP server to send emails |
ecb4e35f | 65 | smtp: |
ed3f089c IB |
66 | # smtp or sendmail |
67 | transport: smtp | |
68 | # Path to sendmail command. Required if you use sendmail transport | |
69 | sendmail: null | |
ecb4e35f | 70 | hostname: null |
6401417d | 71 | port: 465 # If you use StartTLS: 587 |
ecb4e35f C |
72 | username: null |
73 | password: null | |
6401417d | 74 | tls: true # If you use StartTLS: false |
bebf2d89 | 75 | disable_starttls: false |
ecb4e35f C |
76 | ca_file: null # Used for self signed certificates |
77 | from_address: 'admin@example.com' | |
78 | ||
dd2c2a52 C |
79 | email: |
80 | body: | |
97b6428a | 81 | signature: 'PeerTube' |
916937d7 | 82 | subject: |
97b6428a | 83 | prefix: '[PeerTube]' |
dd2c2a52 | 84 | |
3cf68b86 C |
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 | |
7399a79f | 91 | |
3cf68b86 C |
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 | |
0bc53e20 | 101 | |
a9bfa85d | 102 | p2p: |
a4152bed | 103 | # Enable P2P by default in PeerTube client |
a9bfa85d | 104 | # Can be enabled/disabled by anonymous users and logged in users |
b65de1be C |
105 | webapp: |
106 | enabled: true | |
107 | ||
a4152bed C |
108 | # Enable P2P by default in PeerTube embed |
109 | # Can be enabled/disabled by URL option | |
b65de1be C |
110 | embed: |
111 | enabled: true | |
a9bfa85d | 112 | |
552cc9d6 C |
113 | # From the project root directory |
114 | storage: | |
37ede348 | 115 | tmp: '/var/www/peertube/storage/tmp/' # Use to download data (imports etc), store uploaded files before and during processing... |
62549e6c | 116 | bin: '/var/www/peertube/storage/bin/' |
59c48d49 C |
117 | avatars: '/var/www/peertube/storage/avatars/' |
118 | videos: '/var/www/peertube/storage/videos/' | |
0b16f5f2 | 119 | streaming_playlists: '/var/www/peertube/storage/streaming-playlists/' |
aafbc63a | 120 | redundancy: '/var/www/peertube/storage/redundancy/' |
59c48d49 C |
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/' | |
40e87e9e | 125 | captions: '/var/www/peertube/storage/captions/' |
59c48d49 | 126 | cache: '/var/www/peertube/storage/cache/' |
345da516 | 127 | plugins: '/var/www/peertube/storage/plugins/' |
6c5f0d3a | 128 | well_known: '/var/www/peertube/storage/well-known/' |
94fecbc1 | 129 | # Overridable client files in client/dist/assets/images: |
c80e458a | 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) | |
caf2aaf4 K |
136 | # Could contain for example assets/images/favicon.png |
137 | # If the file exists, peertube will serve it | |
863c1bc6 | 138 | # If not, peertube will fallback to the default file |
caf2aaf4 | 139 | client_overrides: '/var/www/peertube/storage/client-overrides/' |
4793c343 | 140 | |
0305db28 JB |
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 | ||
9ab330b9 C |
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' | |
f9915efa | 154 | |
0305db28 JB |
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 | |
23c0b67d | 162 | max_upload_part: 100MB |
0305db28 JB |
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 | ||
23e27dd5 | 180 | log: |
31a91119 | 181 | level: 'info' # 'debug' | 'info' | 'warn' | 'error' |
42b40636 | 182 | |
fcf4569f | 183 | rotation: |
aafbc63a | 184 | enabled : true # Enabled by default, if disabled make sure that 'storage.logs' is pointing to a folder handled by logrotate |
97b6428a C |
185 | max_file_size: 12MB |
186 | max_files: 20 | |
42b40636 | 187 | |
97b6428a | 188 | anonymize_ip: false |
42b40636 | 189 | |
12c1e38d | 190 | log_ping_requests: true |
a4152bed | 191 | log_tracker_unknown_infohash: true |
42b40636 | 192 | |
1e743faa | 193 | prettify_sql: false |
23e27dd5 | 194 | |
42b40636 C |
195 | # Accept warn/error logs coming from the client |
196 | accept_client_log: true | |
197 | ||
630d0a1b C |
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 | ||
9a629c6e C |
214 | trending: |
215 | videos: | |
216 | interval_days: 7 # Compute trending videos for the last x days | |
ba5d4a84 RK |
217 | algorithms: |
218 | enabled: | |
3d4e112d | 219 | - 'hot' # adaptation of Reddit's 'Hot' algorithm |
ba5d4a84 RK |
220 | - 'most-viewed' # default, used initially by PeerTube as the trending page |
221 | - 'most-liked' | |
222 | default: 'most-viewed' | |
9a629c6e | 223 | |
c48e82b5 C |
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: | |
f9f899b9 | 229 | check_interval: '1 hour' # How often you want to check new videos to cache |
6040f87d | 230 | strategies: # Just uncomment strategies you want |
d9bdd007 C |
231 | # - |
232 | # size: '10GB' | |
e5565833 C |
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' | |
d9bdd007 C |
235 | # strategy: 'most-views' # Cache videos that have the most views |
236 | # - | |
237 | # size: '10GB' | |
e5565833 C |
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' | |
d9bdd007 C |
240 | # strategy: 'trending' # Cache trending videos |
241 | # - | |
242 | # size: '10GB' | |
e5565833 C |
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' | |
d9bdd007 | 245 | # strategy: 'recently-added' # Cache recently added videos |
e5565833 | 246 | # min_views: 10 # Having at least x views |
c48e82b5 | 247 | |
8c9e7875 C |
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 | ||
539d3f4f C |
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 | ||
8155db66 C |
261 | security: |
262 | # Set the X-Frame-Options header to help to mitigate clickjacking attacks | |
263 | frameguard: | |
264 | enabled: true | |
265 | ||
31b6ddf8 | 266 | tracker: |
a4152bed | 267 | # If you disable the tracker, you disable the P2P on your PeerTube instance |
31b6ddf8 | 268 | enabled: true |
de7f1114 C |
269 | # Only handle requests on your videos |
270 | # If you set this to false it means you have a public tracker | |
31b6ddf8 C |
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 | ||
8f0bc73d C |
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 | |
539d3f4f | 282 | |
cda03765 C |
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: | |
acfa2e30 | 291 | max_age: '30 days' |
cda03765 | 292 | |
51353d9a C |
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 | ||
b2111066 C |
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 | ||
6702a1b2 | 305 | plugins: |
aafbc63a C |
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 | |
6702a1b2 C |
308 | index: |
309 | enabled: true | |
df9a1a13 | 310 | check_latest_versions_interval: '12 hours' # How often you want to check new plugins/themes versions |
6702a1b2 C |
311 | url: 'https://packages.joinpeertube.org' |
312 | ||
3092e9bb LB |
313 | federation: |
314 | videos: | |
87568f93 | 315 | federate_unlisted: false |
3092e9bb | 316 | |
74d249bc C |
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 | |
c5e53d0e | 319 | cleanup_remote_interactions: true |
74d249bc | 320 | |
32a18cbf C |
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' | |
cda03765 | 327 | |
8d8a037e JB |
328 | webadmin: |
329 | configuration: | |
cf0c8ee5 | 330 | edition: |
e89392d7 C |
331 | # Set this to false if you don't want to allow config edition in the web interface by instance admins |
332 | allowed: true | |
8d8a037e | 333 | |
db9d882c C |
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 | ||
509cd56a C |
344 | ############################################################################### |
345 | # | |
db9d882c | 346 | # From this point, almost all following keys can be overridden by the web interface |
509cd56a C |
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 | |
de7f1114 | 349 | # reloaded without any need to restart PeerTube |
509cd56a | 350 | # |
db9d882c C |
351 | # /!\ If you already have a local-production.json file, modification of some of |
352 | # the following keys will have no effect /!\ | |
509cd56a C |
353 | # |
354 | ############################################################################### | |
355 | ||
62ccb24e C |
356 | cache: |
357 | previews: | |
f842e810 C |
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 | |
90a8bd30 C |
361 | torrents: |
362 | size: 500 # Max number of video torrents you want to cache | |
62ccb24e | 363 | |
4793c343 | 364 | admin: |
a4101923 C |
365 | # Used to generate the root user at first startup |
366 | # And to receive emails from the contact form | |
4793c343 | 367 | email: 'admin@example.com' |
e22528ac | 368 | |
a4101923 C |
369 | contact_form: |
370 | enabled: true | |
371 | ||
e22528ac C |
372 | signup: |
373 | enabled: false | |
62ccb24e | 374 | limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited |
e89392d7 | 375 | minimum_age: 16 # Used to configure the signup form |
d9eaee39 | 376 | requires_email_verification: false |
6401417d | 377 | filters: |
ff2c1fe8 RK |
378 | cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist |
379 | whitelist: [] | |
380 | blacklist: [] | |
227d02fe | 381 | |
b0f9f39e | 382 | user: |
de7f1114 C |
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) | |
b0f9f39e C |
385 | # -1 == unlimited |
386 | video_quota: -1 | |
bee0abff | 387 | video_quota_daily: -1 |
b0f9f39e | 388 | |
754b6f5f FC |
389 | video_channels: |
390 | max_per_user: 20 # Allows each user to create up to 20 video channels. | |
391 | ||
97b6428a | 392 | # If enabled, the video will be transcoded to mp4 (x264) with `faststart` flag |
de7f1114 | 393 | # In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions |
09f35e2a | 394 | # Please, do not disable transcoding since many uploaded videos will not work |
227d02fe | 395 | transcoding: |
1125c40a | 396 | enabled: true |
1896bca0 | 397 | |
fccbbc1a | 398 | # Allow your users to upload .mkv, .mov, .avi, .wmv, .flv, .f4v, .3g2, .3gp, .mts, m2ts, .mxf, .nut videos |
14e2014a | 399 | allow_additional_extensions: true |
1896bca0 | 400 | |
536598cf C |
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 | |
1896bca0 | 403 | |
9129b769 | 404 | # Amount of threads used by ffmpeg for 1 transcoding job |
98f535a5 | 405 | threads: 1 |
9129b769 C |
406 | # Amount of transcoding jobs to execute in parallel |
407 | concurrency: 1 | |
1896bca0 C |
408 | |
409 | # Choose the transcoding profile | |
410 | # New profiles can be added by plugins | |
411 | # Available in core PeerTube: 'default' | |
412 | profile: 'default' | |
413 | ||
09f35e2a | 414 | resolutions: # Only created if the original video has a higher resolution, uses more storage! |
6ad88df8 | 415 | 0p: false # audio-only (creates mp4 without video stream, always created when enabled) |
8dd754c7 | 416 | 144p: false |
1125c40a C |
417 | 240p: false |
418 | 360p: false | |
419 | 480p: false | |
420 | 720p: false | |
421 | 1080p: false | |
b7085c71 | 422 | 1440p: false |
ad3405d0 | 423 | 2160p: false |
d7a25329 | 424 | |
84cae54e C |
425 | # Transcode and keep original resolution, even if it's above your maximum enabled resolution |
426 | always_transcode_original_resolution: true | |
427 | ||
d7a25329 C |
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 | |
04cda1d7 | 430 | # If disabled, breaks federation with PeerTube instances < 2.1 |
d7a25329 | 431 | webtorrent: |
6a882428 | 432 | enabled: false |
d7a25329 | 433 | |
5d9e4eaa | 434 | # /!\ Requires ffmpeg >= 4.1 |
7f8f8bdb | 435 | # Generate HLS playlists and fragmented MP4 files. Better playback than with WebTorrent: |
09209296 C |
436 | # * Resolution change is smoother |
437 | # * Faster playback in particular with long videos | |
438 | # * More stable playback (less bugs/infinite loading) | |
d7a25329 | 439 | # If you also enabled the webtorrent format, it will multiply videos storage by 2 |
09209296 | 440 | hls: |
6a882428 | 441 | enabled: true |
66b16caf | 442 | |
d2345ce9 C |
443 | live: |
444 | enabled: false | |
445 | ||
446 | # Limit lives duration | |
1896bca0 | 447 | # -1 == unlimited |
c9bc850e | 448 | max_duration: -1 # For example: '5 hours' |
d2345ce9 C |
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 | ||
f443a746 C |
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 | ||
4f20856e | 470 | # Your firewall should accept traffic from this port in TCP if you enable live |
d2345ce9 | 471 | rtmp: |
df1db951 | 472 | enabled: true |
cfbe6be5 | 473 | |
9c5e5822 | 474 | # Listening hostname/port for RTMP server |
d322f854 C |
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 | |
cfbe6be5 C |
478 | port: 1935 |
479 | ||
9c5e5822 | 480 | # Public hostname of your RTMP server |
cfbe6be5 C |
481 | # Use null to use the same value than `webserver.hostname` |
482 | public_hostname: null | |
d2345ce9 | 483 | |
df1db951 C |
484 | rtmps: |
485 | enabled: false | |
cfbe6be5 | 486 | |
9c5e5822 | 487 | # Listening hostname/port for RTMPS server |
d322f854 C |
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 | |
df1db951 | 491 | port: 1936 |
cfbe6be5 C |
492 | |
493 | # Absolute paths | |
df1db951 C |
494 | key_file: '' |
495 | cert_file: '' | |
cfbe6be5 | 496 | |
9c5e5822 | 497 | # Public hostname of your RTMPS server |
cfbe6be5 C |
498 | # Use null to use the same value than `webserver.hostname` |
499 | public_hostname: null | |
df1db951 | 500 | |
d2345ce9 C |
501 | # Allow to transcode the live streaming in multiple live resolutions |
502 | transcoding: | |
cf3e0d69 | 503 | enabled: true |
d2345ce9 C |
504 | threads: 2 |
505 | ||
1896bca0 C |
506 | # Choose the transcoding profile |
507 | # New profiles can be added by plugins | |
508 | # Available in core PeerTube: 'default' | |
509 | profile: 'default' | |
510 | ||
d2345ce9 | 511 | resolutions: |
8dd754c7 | 512 | 144p: false |
d2345ce9 C |
513 | 240p: false |
514 | 360p: false | |
515 | 480p: false | |
516 | 720p: false | |
517 | 1080p: false | |
b7085c71 | 518 | 1440p: false |
d2345ce9 C |
519 | 2160p: false |
520 | ||
84cae54e C |
521 | # Also transcode original resolution, even if it's above your maximum enabled resolution |
522 | always_transcode_original_resolution: true | |
523 | ||
92e66e04 | 524 | video_studio: |
c729caf6 | 525 | # Enable video edition by users (cut, add intro/outro, add watermark etc) |
a5a1690d | 526 | # If enabled, users can create transcoding tasks as they wish |
c729caf6 C |
527 | enabled: false |
528 | ||
5d08a6a7 C |
529 | import: |
530 | # Add ability for your users to import remote videos (from YouTube, torrent...) | |
531 | videos: | |
9129b769 C |
532 | # Amount of import jobs to execute in parallel |
533 | concurrency: 1 | |
534 | ||
3eba7ab8 C |
535 | # Set a custom video import timeout to not block import queue |
536 | timeout: '2 hours' | |
537 | ||
474542d7 C |
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 | |
5d08a6a7 | 542 | enabled: false |
e0409585 | 543 | |
de7f1114 C |
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 | |
f7569270 C |
550 | # * https://yt-dl.org/downloads/latest/youtube-dl |
551 | url: 'https://api.github.com/repos/yt-dlp/yt-dlp/releases' | |
de7f1114 | 552 | |
f7569270 C |
553 | # Release binary name: 'yt-dlp' or 'youtube-dl' |
554 | name: 'yt-dlp' | |
de7f1114 | 555 | |
22c77786 F |
556 | # Path to the python binary to execute for youtube-dl or yt-dlp |
557 | python_path: '/usr/bin/python3' | |
558 | ||
677012b4 | 559 | # IPv6 is very strongly rate-limited on most sites supported by youtube-dl |
e0409585 C |
560 | force_ipv4: false |
561 | ||
474542d7 C |
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 | |
a84b8fa5 | 566 | enabled: false |
5d08a6a7 | 567 | |
2a491182 F |
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 | ||
7ccddd7b JM |
579 | auto_blacklist: |
580 | # New videos automatically blacklisted so moderators can review before publishing | |
581 | videos: | |
582 | of_users: | |
5b9c965d C |
583 | enabled: false |
584 | ||
95540ed2 | 585 | # Instance settings |
66b16caf C |
586 | instance: |
587 | name: 'PeerTube' | |
51de2c7f | 588 | short_description: 'PeerTube, an ActivityPub-federated video streaming platform using P2P directly in your web browser.' |
8ae03c37 C |
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? | |
d605328a | 597 | creation_reason: '' # Supports Markdown |
8ae03c37 C |
598 | |
599 | # Who is behind the instance? A single person? A non profit? | |
d605328a | 600 | administrator: '' # Supports Markdown |
8ae03c37 C |
601 | |
602 | # How long do you plan to maintain this instance? | |
d605328a | 603 | maintenance_lifetime: '' # Supports Markdown |
8ae03c37 | 604 | |
96a4a7c3 | 605 | # How will you pay the PeerTube instance server? With your own funds? With users donations? Advertising? |
d605328a | 606 | business_model: '' # Supports Markdown |
8ae03c37 | 607 | |
be04c6fd | 608 | # If you want to explain on what type of hardware your PeerTube instance runs |
97b6428a | 609 | # Example: '2 vCore, 2GB RAM...' |
be04c6fd C |
610 | hardware_information: '' # Supports Markdown |
611 | ||
8ae03c37 C |
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 | ||
901637bb | 643 | default_client_route: '/videos/trending' |
8ae03c37 | 644 | |
f8802489 C |
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 | |
97b6428a | 649 | # By default, `do_not_list` or `blur` or `display` NSFW videos |
0883b324 C |
650 | # Could be overridden per user with a setting |
651 | default_nsfw_policy: 'do_not_list' | |
8ae03c37 | 652 | |
00b5556c C |
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 | |
97b6428a | 656 | # Robot.txt rules. To disallow robots to crawl your instance and disallow indexation of your site, add `/` to `Disallow:` |
ac235c37 RK |
657 | robots: | |
658 | User-agent: * | |
df182b37 | 659 | Disallow: |
b569b2c6 C |
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 | |
5447516b | 662 | securitytxt: |
97b6428a | 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:' |
8be1afa1 C |
664 | |
665 | services: | |
666 | # Cards configuration to format video in Twitter | |
667 | twitter: | |
351d5225 | 668 | username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published |
8be1afa1 C |
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 | |
97b6428a | 671 | # Change it to `true`, and then test on https://cards-dev.twitter.com/validator to see if you are whitelisted |
19f7b248 | 672 | whitelisted: false |
5b9c965d C |
673 | |
674 | followers: | |
675 | instance: | |
676 | # Allow or not other instances to follow yours | |
677 | enabled: true | |
14893eb7 C |
678 | # Whether or not an administrator must manually validate a new follower |
679 | manual_approval: false | |
7cd4d2ba | 680 | |
8424c402 C |
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 | |
95cd31f1 C |
694 | # Host your own using https://framagit.org/framasoft/peertube/instances-peertube#peertube-auto-follow |
695 | index_url: '' | |
8424c402 | 696 | |
7cd4d2ba C |
697 | theme: |
698 | default: 'default' | |
72c33e71 C |
699 | |
700 | broadcast_message: | |
701 | enabled: false | |
702 | message: '' # Support markdown | |
703 | level: 'info' # 'info' | 'warning' | 'error' | |
704 | dismissable: false | |
5fb2e288 C |
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 | |
3cf68b86 C |
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 | |
2c102aac | 737 | display_author_avatar: false |
60233e90 | 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 | |
3cf68b86 C |
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 |