diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 10 | ||||
-rw-r--r-- | config/production.yaml.example | 10 |
2 files changed, 12 insertions, 8 deletions
diff --git a/config/default.yaml b/config/default.yaml index 43c7f4a53..b9e382fa7 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -106,6 +106,12 @@ log: | |||
106 | trending: | 106 | trending: |
107 | videos: | 107 | videos: |
108 | interval_days: 7 # Compute trending videos for the last x days | 108 | interval_days: 7 # Compute trending videos for the last x days |
109 | algorithms: | ||
110 | enabled: | ||
111 | - 'hot' # adaptation of the Reddit 'Hot' algorithm | ||
112 | - 'most-viewed' # default, used initially by PeerTube as the trending page | ||
113 | - 'most-liked' | ||
114 | default: 'most-viewed' | ||
109 | 115 | ||
110 | # Cache remote videos on your server, to help other instances to broadcast the video | 116 | # Cache remote videos on your server, to help other instances to broadcast the video |
111 | # You can define multiple caches using different sizes/strategies | 117 | # You can define multiple caches using different sizes/strategies |
@@ -366,10 +372,6 @@ instance: | |||
366 | # - 18 # Food | 372 | # - 18 # Food |
367 | 373 | ||
368 | default_client_route: '/videos/trending' | 374 | default_client_route: '/videos/trending' |
369 | default_trending_route: '/videos/most-viewed' | ||
370 | pages: | ||
371 | hot: | ||
372 | enabled: true | ||
373 | 375 | ||
374 | # Whether or not the instance is dedicated to NSFW content | 376 | # Whether or not the instance is dedicated to NSFW content |
375 | # Enabling it will allow other administrators to know that you are mainly federating sensitive content | 377 | # Enabling it will allow other administrators to know that you are mainly federating sensitive content |
diff --git a/config/production.yaml.example b/config/production.yaml.example index f9f3abc18..b616c6ced 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -106,6 +106,12 @@ log: | |||
106 | trending: | 106 | trending: |
107 | videos: | 107 | videos: |
108 | interval_days: 7 # Compute trending videos for the last x days | 108 | interval_days: 7 # Compute trending videos for the last x days |
109 | algorithms: | ||
110 | enabled: | ||
111 | - 'hot' # adaptation of the Reddit 'Hot' algorithm | ||
112 | - 'most-viewed' # default, used initially by PeerTube as the trending page | ||
113 | - 'most-liked' | ||
114 | default: 'most-viewed' | ||
109 | 115 | ||
110 | # Cache remote videos on your server, to help other instances to broadcast the video | 116 | # Cache remote videos on your server, to help other instances to broadcast the video |
111 | # You can define multiple caches using different sizes/strategies | 117 | # You can define multiple caches using different sizes/strategies |
@@ -380,10 +386,6 @@ instance: | |||
380 | # - 18 # Food | 386 | # - 18 # Food |
381 | 387 | ||
382 | default_client_route: '/videos/trending' | 388 | default_client_route: '/videos/trending' |
383 | default_trending_route: '/videos/most-viewed' | ||
384 | pages: | ||
385 | hot: | ||
386 | enabled: true | ||
387 | 389 | ||
388 | # Whether or not the instance is dedicated to NSFW content | 390 | # Whether or not the instance is dedicated to NSFW content |
389 | # Enabling it will allow other administrators to know that you are mainly federating sensitive content | 391 | # Enabling it will allow other administrators to know that you are mainly federating sensitive content |