aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/default.yaml74
-rw-r--r--config/production.yaml.example85
2 files changed, 149 insertions, 10 deletions
diff --git a/config/default.yaml b/config/default.yaml
index dfba23f59..5ebfdeddb 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -69,7 +69,7 @@ email:
69 69
70# From the project root directory 70# From the project root directory
71storage: 71storage:
72 tmp: 'storage/tmp/' # Used to download data (imports etc), store uploaded files before processing... 72 tmp: 'storage/tmp/' # Use to download data (imports etc), store uploaded files before processing...
73 avatars: 'storage/avatars/' 73 avatars: 'storage/avatars/'
74 videos: 'storage/videos/' 74 videos: 'storage/videos/'
75 streaming_playlists: 'storage/streaming-playlists/' 75 streaming_playlists: 'storage/streaming-playlists/'
@@ -85,7 +85,7 @@ storage:
85log: 85log:
86 level: 'info' # debug/info/warning/error 86 level: 'info' # debug/info/warning/error
87 rotation: 87 rotation:
88 enabled : true # Enabled by default, if disabled make sure that 'storage.logs' is pointing to a folder handled by logrotate 88 enabled : true
89 89
90search: 90search:
91 # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance 91 # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
@@ -238,7 +238,60 @@ instance:
238 short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.' 238 short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.'
239 description: 'Welcome to this PeerTube instance!' # Support markdown 239 description: 'Welcome to this PeerTube instance!' # Support markdown
240 terms: 'No terms for now.' # Support markdown 240 terms: 'No terms for now.' # Support markdown
241 code_of_conduct: '' # Supports markdown
242
243 # Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc
244 moderation_information: '' # Supports markdown
245
246 # Why did you create this instance?
247 creation_reason: ''
248
249 # Who is behind the instance? A single person? A non profit?
250 administrator: ''
251
252 # How long do you plan to maintain this instance?
253 maintenance_lifetime: ''
254
255 # How will you pay the PeerTube instance server? With you own funds? With users donations? Advertising?
256 business_model: ''
257
258 # If you want to explain on what type of hardware your PeerTube instance runs
259 # Example: "2 vCore, 2GB RAM..."
260 hardware_information: '' # Supports Markdown
261
262 # What are the main languages of your instance? To interact with your users for example
263 # Uncomment or add the languages you want
264 # List of supported languages: https://peertube.cpy.re/api/v1/videos/languages
265 languages:
266# - en
267# - es
268# - fr
269
270 # You can specify the main categories of your instance (dedicated to music, gaming or politics etc)
271 # Uncomment or add the category ids you want
272 # List of supported categories: https://peertube.cpy.re/api/v1/videos/categories
273 categories:
274# - 1 # Music
275# - 2 # Films
276# - 3 # Vehicles
277# - 4 # Art
278# - 5 # Sports
279# - 6 # Travels
280# - 7 # Gaming
281# - 8 # People
282# - 9 # Comedy
283# - 10 # Entertainment
284# - 11 # News & Politics
285# - 12 # How To
286# - 13 # Education
287# - 14 # Activism
288# - 15 # Science & Technology
289# - 16 # Animals
290# - 17 # Kids
291# - 18 # Food
292
241 default_client_route: '/videos/trending' 293 default_client_route: '/videos/trending'
294
242 # Whether or not the instance is dedicated to NSFW content 295 # Whether or not the instance is dedicated to NSFW content
243 # Enabling it will allow other administrators to know that you are mainly federating sensitive content 296 # Enabling it will allow other administrators to know that you are mainly federating sensitive content
244 # Moreover, the NSFW checkbox on video upload will be automatically checked by default 297 # Moreover, the NSFW checkbox on video upload will be automatically checked by default
@@ -246,6 +299,7 @@ instance:
246 # By default, "do_not_list" or "blur" or "display" NSFW videos 299 # By default, "do_not_list" or "blur" or "display" NSFW videos
247 # Could be overridden per user with a setting 300 # Could be overridden per user with a setting
248 default_nsfw_policy: 'do_not_list' 301 default_nsfw_policy: 'do_not_list'
302
249 customizations: 303 customizations:
250 javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime 304 javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime
251 css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime 305 css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime
@@ -273,5 +327,21 @@ followers:
273 # Whether or not an administrator must manually validate a new follower 327 # Whether or not an administrator must manually validate a new follower
274 manual_approval: false 328 manual_approval: false
275 329
330followings:
331 instance:
332 # If you want to automatically follow back new instance followers
333 # Only follows accepted followers (in case you enabled manual followers approbation)
334 # If this option is enabled, use the mute feature instead of deleting followings
335 # /!\ Don't enable this if you don't have a reactive moderation team /!\
336 auto_follow_back:
337 enabled: false
338
339 # If you want to automatically follow instances of the public index
340 # If this option is enabled, use the mute feature instead of deleting followings
341 # /!\ Don't enable this if you don't have a reactive moderation team /!\
342 auto_follow_index:
343 enabled: false
344 index_url: 'https://instances.joinpeertube.org'
345
276theme: 346theme:
277 default: 'default' 347 default: 'default'
diff --git a/config/production.yaml.example b/config/production.yaml.example
index 267186e08..96d676a35 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -70,11 +70,11 @@ email:
70 70
71# From the project root directory 71# From the project root directory
72storage: 72storage:
73 tmp: '/var/www/peertube/storage/tmp/' # Used to download data (imports etc), store uploaded files before processing... 73 tmp: '/var/www/peertube/storage/tmp/' # Use to download data (imports etc), store uploaded files before processing...
74 avatars: '/var/www/peertube/storage/avatars/' 74 avatars: '/var/www/peertube/storage/avatars/'
75 videos: '/var/www/peertube/storage/videos/' 75 videos: '/var/www/peertube/storage/videos/'
76 streaming_playlists: '/var/www/peertube/storage/streaming-playlists/' 76 streaming_playlists: '/var/www/peertube/storage/streaming-playlists/'
77 redundancy: '/var/www/peertube/storage/videos/' 77 redundancy: '/var/www/peertube/storage/redundancy/'
78 logs: '/var/www/peertube/storage/logs/' 78 logs: '/var/www/peertube/storage/logs/'
79 previews: '/var/www/peertube/storage/previews/' 79 previews: '/var/www/peertube/storage/previews/'
80 thumbnails: '/var/www/peertube/storage/thumbnails/' 80 thumbnails: '/var/www/peertube/storage/thumbnails/'
@@ -86,7 +86,7 @@ storage:
86log: 86log:
87 level: 'info' # debug/info/warning/error 87 level: 'info' # debug/info/warning/error
88 rotation: 88 rotation:
89 enabled : true 89 enabled : true # Enabled by default, if disabled make sure that 'storage.logs' is pointing to a folder handled by logrotate
90 90
91search: 91search:
92 # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance 92 # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
@@ -157,8 +157,8 @@ views:
157 max_age: -1 157 max_age: -1
158 158
159plugins: 159plugins:
160 # The website PeerTube will ask for available PeerTube plugins 160 # The website PeerTube will ask for available PeerTube plugins and themes
161 # This is an unmoderated plugin index, so only install plugins you trust 161 # This is an unmoderated plugin index, so only install plugins/themes you trust
162 index: 162 index:
163 enabled: true 163 enabled: true
164 check_latest_versions_interval: '12 hours' # How often you want to check new plugins/themes versions 164 check_latest_versions_interval: '12 hours' # How often you want to check new plugins/themes versions
@@ -251,9 +251,62 @@ auto_blacklist:
251instance: 251instance:
252 name: 'PeerTube' 252 name: 'PeerTube'
253 short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.' 253 short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.'
254 description: '' # Support markdown 254 description: 'Welcome to this PeerTube instance!' # Support markdown
255 terms: '' # Support markdown 255 terms: 'No terms for now.' # Support markdown
256 code_of_conduct: '' # Supports markdown
257
258 # Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc
259 moderation_information: '' # Supports markdown
260
261 # Why did you create this instance?
262 creation_reason: ''
263
264 # Who is behind the instance? A single person? A non profit?
265 administrator: ''
266
267 # How long do you plan to maintain this instance?
268 maintenance_lifetime: ''
269
270 # How will you pay the PeerTube instance server? With you own funds? With users donations? Advertising?
271 business_model: ''
272
273 # If you want to explain on what type of hardware your PeerTube instance runs
274 # Example: "2 vCore, 2GB RAM..."
275 hardware_information: '' # Supports Markdown
276
277 # What are the main languages of your instance? To interact with your users for example
278 # Uncomment or add the languages you want
279 # List of supported languages: https://peertube.cpy.re/api/v1/videos/languages
280 languages:
281# - en
282# - es
283# - fr
284
285 # You can specify the main categories of your instance (dedicated to music, gaming or politics etc)
286 # Uncomment or add the category ids you want
287 # List of supported categories: https://peertube.cpy.re/api/v1/videos/categories
288 categories:
289# - 1 # Music
290# - 2 # Films
291# - 3 # Vehicles
292# - 4 # Art
293# - 5 # Sports
294# - 6 # Travels
295# - 7 # Gaming
296# - 8 # People
297# - 9 # Comedy
298# - 10 # Entertainment
299# - 11 # News & Politics
300# - 12 # How To
301# - 13 # Education
302# - 14 # Activism
303# - 15 # Science & Technology
304# - 16 # Animals
305# - 17 # Kids
306# - 18 # Food
307
256 default_client_route: '/videos/trending' 308 default_client_route: '/videos/trending'
309
257 # Whether or not the instance is dedicated to NSFW content 310 # Whether or not the instance is dedicated to NSFW content
258 # Enabling it will allow other administrators to know that you are mainly federating sensitive content 311 # Enabling it will allow other administrators to know that you are mainly federating sensitive content
259 # Moreover, the NSFW checkbox on video upload will be automatically checked by default 312 # Moreover, the NSFW checkbox on video upload will be automatically checked by default
@@ -261,6 +314,7 @@ instance:
261 # By default, "do_not_list" or "blur" or "display" NSFW videos 314 # By default, "do_not_list" or "blur" or "display" NSFW videos
262 # Could be overridden per user with a setting 315 # Could be overridden per user with a setting
263 default_nsfw_policy: 'do_not_list' 316 default_nsfw_policy: 'do_not_list'
317
264 customizations: 318 customizations:
265 javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime 319 javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime
266 css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime 320 css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime
@@ -278,7 +332,7 @@ services:
278 username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published 332 username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published
279 # If true, a video player will be embedded in the Twitter feed on PeerTube video share 333 # If true, a video player will be embedded in the Twitter feed on PeerTube video share
280 # If false, we use an image link card that will redirect on your PeerTube instance 334 # If false, we use an image link card that will redirect on your PeerTube instance
281 # Test on https://cards-dev.twitter.com/validator to see if you are whitelisted 335 # Change it to "true", and then test on https://cards-dev.twitter.com/validator to see if you are whitelisted
282 whitelisted: false 336 whitelisted: false
283 337
284followers: 338followers:
@@ -288,5 +342,20 @@ followers:
288 # Whether or not an administrator must manually validate a new follower 342 # Whether or not an administrator must manually validate a new follower
289 manual_approval: false 343 manual_approval: false
290 344
345followings:
346 instance:
347 # If you want to automatically follow back new instance followers
348 # If this option is enabled, use the mute feature instead of deleting followings
349 # /!\ Don't enable this if you don't have a reactive moderation team /!\
350 auto_follow_back:
351 enabled: false
352
353 # If you want to automatically follow instances of the public index
354 # If this option is enabled, use the mute feature instead of deleting followings
355 # /!\ Don't enable this if you don't have a reactive moderation team /!\
356 auto_follow_index:
357 enabled: false
358 index_url: 'https://instances.joinpeertube.org'
359
291theme: 360theme:
292 default: 'default' 361 default: 'default'