aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-07-21 23:00:25 +0200
committerChocobozzz <me@florianbigard.com>2018-07-24 14:08:44 +0200
commit3f6d68d9671ddb7ba1c4f3a35021b84856dafb6a (patch)
tree4a84a6a532fa042710c88edbaa5a5613173e00e3 /server/initializers/constants.ts
parent4278710d5b48546709720fac46657b84bba52a18 (diff)
downloadPeerTube-3f6d68d9671ddb7ba1c4f3a35021b84856dafb6a.tar.gz
PeerTube-3f6d68d9671ddb7ba1c4f3a35021b84856dafb6a.tar.zst
PeerTube-3f6d68d9671ddb7ba1c4f3a35021b84856dafb6a.zip
adding initial support for nodeinfo
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index e66ebb662..e8e0da683 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -46,9 +46,11 @@ const OAUTH_LIFETIME = {
46} 46}
47 47
48const ROUTE_CACHE_LIFETIME = { 48const ROUTE_CACHE_LIFETIME = {
49 FEEDS: 1000 * 60 * 15, // 15 minutes 49 FEEDS: '15 minutes',
50 ROBOTS: '2 hours',
51 NODEINFO: '10 minutes',
50 ACTIVITY_PUB: { 52 ACTIVITY_PUB: {
51 VIDEOS: 1000 // 1 second, cache concurrent requests after a broadcast for example 53 VIDEOS: '1 second' // 1 second, cache concurrent requests after a broadcast for example
52 } 54 }
53} 55}
54 56