aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-10-21 12:28:32 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-10-21 13:13:49 +0200
commitdc0091326156aaeda566151b65fe8d49097750b9 (patch)
tree7e2b30d3db3a4c2f7ba65c84c607815396f018bf /server/initializers/constants.js
parentc731ee4efdbc3c6e867b024110fc12aac326f543 (diff)
downloadPeerTube-dc0091326156aaeda566151b65fe8d49097750b9.tar.gz
PeerTube-dc0091326156aaeda566151b65fe8d49097750b9.tar.zst
PeerTube-dc0091326156aaeda566151b65fe8d49097750b9.zip
Client: avoid "quit friends" to appear during the pending request
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r--server/initializers/constants.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index f77c4948f..8a8d5c1ce 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -128,6 +128,9 @@ const STATIC_PATHS = {
128 WEBSEED: '/static/webseed/' 128 WEBSEED: '/static/webseed/'
129} 129}
130 130
131// Cache control
132let STATIC_MAX_AGE = '30d'
133
131// Videos thumbnail size 134// Videos thumbnail size
132const THUMBNAILS_SIZE = '200x110' 135const THUMBNAILS_SIZE = '200x110'
133 136
@@ -143,6 +146,7 @@ if (isTestInstance() === true) {
143 CONSTRAINTS_FIELDS.VIDEOS.DURATION.max = 14 146 CONSTRAINTS_FIELDS.VIDEOS.DURATION.max = 14
144 FRIEND_SCORE.BASE = 20 147 FRIEND_SCORE.BASE = 20
145 REQUESTS_INTERVAL = 10000 148 REQUESTS_INTERVAL = 10000
149 STATIC_MAX_AGE = 0
146} 150}
147 151
148// --------------------------------------------------------------------------- 152// ---------------------------------------------------------------------------
@@ -164,6 +168,7 @@ module.exports = {
164 RETRY_REQUESTS, 168 RETRY_REQUESTS,
165 SEARCHABLE_COLUMNS, 169 SEARCHABLE_COLUMNS,
166 SORTABLE_COLUMNS, 170 SORTABLE_COLUMNS,
171 STATIC_MAX_AGE,
167 STATIC_PATHS, 172 STATIC_PATHS,
168 THUMBNAILS_SIZE, 173 THUMBNAILS_SIZE,
169 USER_ROLES 174 USER_ROLES