mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Add ability to customize views/playback interval
This commit is contained in:
parent
49a4b8cb7d
commit
fe37e5232b
15 changed files with 143 additions and 14 deletions
|
@ -274,6 +274,22 @@ class ServerConfigManager {
|
|||
|
||||
homepage: {
|
||||
enabled: this.homepageEnabled
|
||||
},
|
||||
|
||||
openTelemetry: {
|
||||
metrics: {
|
||||
enabled: CONFIG.OPEN_TELEMETRY.METRICS.ENABLED,
|
||||
playbackStatsInterval: CONFIG.OPEN_TELEMETRY.METRICS.PLAYBACK_STATS_INTERVAL
|
||||
}
|
||||
},
|
||||
|
||||
views: {
|
||||
videos: {
|
||||
watchingInterval: {
|
||||
anonymous: CONFIG.VIEWS.VIDEOS.WATCHING_INTERVAL.ANONYMOUS,
|
||||
users: CONFIG.VIEWS.VIDEOS.WATCHING_INTERVAL.USERS
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue