aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-09 10:11:20 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-11-09 15:00:31 +0100
commit51353d9a035fb6b81f903a8b5f391292841649fd (patch)
tree75acb6eea5e043bf2e15a6a5a92e9a3c5967b156 /config
parent221ee1adc916684d4881d2a9c4c01954dcde986e (diff)
downloadPeerTube-51353d9a035fb6b81f903a8b5f391292841649fd.tar.gz
PeerTube-51353d9a035fb6b81f903a8b5f391292841649fd.tar.zst
PeerTube-51353d9a035fb6b81f903a8b5f391292841649fd.zip
Refactor video views
Introduce viewers attribute for live videos Count views for live videos Reduce delay to see the viewer update for lives Add ability to configure video views buffer interval and view ip expiration
Diffstat (limited to 'config')
-rw-r--r--config/default.yaml5
-rw-r--r--config/production.yaml.example5
-rw-r--r--config/test.yaml3
3 files changed, 13 insertions, 0 deletions
diff --git a/config/default.yaml b/config/default.yaml
index c30c29a6b..ee7acb437 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -232,6 +232,11 @@ views:
232 remote: 232 remote:
233 max_age: '30 days' 233 max_age: '30 days'
234 234
235 # PeerTube buffers local video views before updating and federating the video
236 local_buffer_update_interval: '30 minutes'
237
238 ip_view_expiration: '1 hour'
239
235plugins: 240plugins:
236 # The website PeerTube will ask for available PeerTube plugins and themes 241 # The website PeerTube will ask for available PeerTube plugins and themes
237 # This is an unmoderated plugin index, so only install plugins/themes you trust 242 # This is an unmoderated plugin index, so only install plugins/themes you trust
diff --git a/config/production.yaml.example b/config/production.yaml.example
index 4dc5c281d..0175c7a12 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -230,6 +230,11 @@ views:
230 remote: 230 remote:
231 max_age: '30 days' 231 max_age: '30 days'
232 232
233 # PeerTube buffers local video views before updating and federating the video
234 local_buffer_update_interval: '30 minutes'
235
236 ip_view_expiration: '1 hour'
237
233plugins: 238plugins:
234 # The website PeerTube will ask for available PeerTube plugins and themes 239 # The website PeerTube will ask for available PeerTube plugins and themes
235 # This is an unmoderated plugin index, so only install plugins/themes you trust 240 # This is an unmoderated plugin index, so only install plugins/themes you trust
diff --git a/config/test.yaml b/config/test.yaml
index e9731d863..2e7f982d3 100644
--- a/config/test.yaml
+++ b/config/test.yaml
@@ -160,3 +160,6 @@ views:
160 videos: 160 videos:
161 remote: 161 remote:
162 max_age: -1 162 max_age: -1
163
164 local_buffer_update_interval: '5 seconds'
165 ip_view_expiration: '1 second'