aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-09-19 21:33:46 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-09-19 21:33:46 +0200
commitd3cd34be2fd03ea79145dfa8eb16e82d2e23191b (patch)
tree8db702444c4b72cec9de25efb2da5df0aa51cfce /server/initializers/constants.js
parent2e92c10b6cdb32e5170aab0b4c0ff3e4c27e30d5 (diff)
downloadPeerTube-d3cd34be2fd03ea79145dfa8eb16e82d2e23191b.tar.gz
PeerTube-d3cd34be2fd03ea79145dfa8eb16e82d2e23191b.tar.zst
PeerTube-d3cd34be2fd03ea79145dfa8eb16e82d2e23191b.zip
Server: add requests stats endpoint
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r--server/initializers/constants.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index dd4eff493..76ebb8681 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -55,7 +55,7 @@ const FRIEND_SCORE = {
55} 55}
56 56
57// Time to wait between requests to the friends (10 min) 57// Time to wait between requests to the friends (10 min)
58let INTERVAL = 600000 58let REQUESTS_INTERVAL = 600000
59 59
60const OAUTH_LIFETIME = { 60const OAUTH_LIFETIME = {
61 ACCESS_TOKEN: 3600 * 4, // 4 hours 61 ACCESS_TOKEN: 3600 * 4, // 4 hours
@@ -109,7 +109,7 @@ const USER_ROLES = {
109// Special constants for a test instance 109// Special constants for a test instance
110if (isTestInstance() === true) { 110if (isTestInstance() === true) {
111 FRIEND_SCORE.BASE = 20 111 FRIEND_SCORE.BASE = 20
112 INTERVAL = 10000 112 REQUESTS_INTERVAL = 10000
113 CONSTRAINTS_FIELDS.VIDEOS.DURATION.max = 14 113 CONSTRAINTS_FIELDS.VIDEOS.DURATION.max = 14
114} 114}
115 115
@@ -121,7 +121,7 @@ module.exports = {
121 CONFIG: CONFIG, 121 CONFIG: CONFIG,
122 CONSTRAINTS_FIELDS: CONSTRAINTS_FIELDS, 122 CONSTRAINTS_FIELDS: CONSTRAINTS_FIELDS,
123 FRIEND_SCORE: FRIEND_SCORE, 123 FRIEND_SCORE: FRIEND_SCORE,
124 INTERVAL: INTERVAL, 124 REQUESTS_INTERVAL: REQUESTS_INTERVAL,
125 OAUTH_LIFETIME: OAUTH_LIFETIME, 125 OAUTH_LIFETIME: OAUTH_LIFETIME,
126 PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT, 126 PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT,
127 PODS_SCORE: PODS_SCORE, 127 PODS_SCORE: PODS_SCORE,