mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Server: add requests stats endpoint
This commit is contained in:
parent
2e92c10b6c
commit
d3cd34be2f
6 changed files with 199 additions and 7 deletions
|
@ -55,7 +55,7 @@ const FRIEND_SCORE = {
|
|||
}
|
||||
|
||||
// Time to wait between requests to the friends (10 min)
|
||||
let INTERVAL = 600000
|
||||
let REQUESTS_INTERVAL = 600000
|
||||
|
||||
const OAUTH_LIFETIME = {
|
||||
ACCESS_TOKEN: 3600 * 4, // 4 hours
|
||||
|
@ -109,7 +109,7 @@ const USER_ROLES = {
|
|||
// Special constants for a test instance
|
||||
if (isTestInstance() === true) {
|
||||
FRIEND_SCORE.BASE = 20
|
||||
INTERVAL = 10000
|
||||
REQUESTS_INTERVAL = 10000
|
||||
CONSTRAINTS_FIELDS.VIDEOS.DURATION.max = 14
|
||||
}
|
||||
|
||||
|
@ -121,7 +121,7 @@ module.exports = {
|
|||
CONFIG: CONFIG,
|
||||
CONSTRAINTS_FIELDS: CONSTRAINTS_FIELDS,
|
||||
FRIEND_SCORE: FRIEND_SCORE,
|
||||
INTERVAL: INTERVAL,
|
||||
REQUESTS_INTERVAL: REQUESTS_INTERVAL,
|
||||
OAUTH_LIFETIME: OAUTH_LIFETIME,
|
||||
PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT,
|
||||
PODS_SCORE: PODS_SCORE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue