aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.js
diff options
context:
space:
mode:
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