aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-19 16:12:07 +0200
committerChocobozzz <me@florianbigard.com>2018-09-19 16:12:07 +0200
commitd9bdd007d7a1368d2a13127ecb5c0a81a18a8c04 (patch)
tree67cb4d2774dd7127499b882a5aa5069ea6fa86b2 /config
parent12ba460e9ebf4951f9c1caee8822a8ca1523563f (diff)
downloadPeerTube-d9bdd007d7a1368d2a13127ecb5c0a81a18a8c04.tar.gz
PeerTube-d9bdd007d7a1368d2a13127ecb5c0a81a18a8c04.tar.zst
PeerTube-d9bdd007d7a1368d2a13127ecb5c0a81a18a8c04.zip
Put config redundancy strategies in "strategies" subkey
Diffstat (limited to 'config')
-rw-r--r--config/default.yaml21
-rw-r--r--config/production.yaml.example21
-rw-r--r--config/test.yaml21
3 files changed, 33 insertions, 30 deletions
diff --git a/config/default.yaml b/config/default.yaml
index ab07bfedd..00eeaea8c 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -71,16 +71,17 @@ trending:
71# Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following 71# Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following
72redundancy: 72redundancy:
73 videos: 73 videos:
74# - 74 strategies:
75# size: '10GB' 75# -
76# strategy: 'most-views' # Cache videos that have the most views 76# size: '10GB'
77# - 77# strategy: 'most-views' # Cache videos that have the most views
78# size: '10GB' 78# -
79# strategy: 'trending' # Cache trending videos 79# size: '10GB'
80# - 80# strategy: 'trending' # Cache trending videos
81# size: '10GB' 81# -
82# strategy: 'recently-added' # Cache recently added videos 82# size: '10GB'
83# minViews: 10 # Having at least x views 83# strategy: 'recently-added' # Cache recently added videos
84# minViews: 10 # Having at least x views
84 85
85cache: 86cache:
86 previews: 87 previews:
diff --git a/config/production.yaml.example b/config/production.yaml.example
index f9557b8eb..28770e480 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -72,16 +72,17 @@ trending:
72# Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following 72# Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following
73redundancy: 73redundancy:
74 videos: 74 videos:
75# - 75 strategies:
76# size: '10GB' 76# -
77# strategy: 'most-views' # Cache videos that have the most views 77# size: '10GB'
78# - 78# strategy: 'most-views' # Cache videos that have the most views
79# size: '10GB' 79# -
80# strategy: 'trending' # Cache trending videos 80# size: '10GB'
81# - 81# strategy: 'trending' # Cache trending videos
82# size: '10GB' 82# -
83# strategy: 'recently-added' # Cache recently added videos 83# size: '10GB'
84# minViews: 10 # Having at least x views 84# strategy: 'recently-added' # Cache recently added videos
85# minViews: 10 # Having at least x views
85 86
86############################################################################### 87###############################################################################
87# 88#
diff --git a/config/test.yaml b/config/test.yaml
index d3e0e49ac..d36d90bbd 100644
--- a/config/test.yaml
+++ b/config/test.yaml
@@ -23,16 +23,17 @@ log:
23 23
24redundancy: 24redundancy:
25 videos: 25 videos:
26 - 26 strategies:
27 size: '10MB' 27 -
28 strategy: 'most-views' 28 size: '10MB'
29 - 29 strategy: 'most-views'
30 size: '10MB' 30 -
31 strategy: 'trending' 31 size: '10MB'
32 - 32 strategy: 'trending'
33 size: '10MB' 33 -
34 strategy: 'recently-added' 34 size: '10MB'
35 minViews: 1 35 strategy: 'recently-added'
36 minViews: 1
36 37
37cache: 38cache:
38 previews: 39 previews: