aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-10 21:19:24 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-10 21:19:24 +0200
commitcbe2f7c34822b1bd3b1f8c691f79f0c29cf21f07 (patch)
treece678124210db8b03b2a523e3b92a14cc403eeee /server/initializers/constants.js
parentf1dae018681936b556b2496b7f2d872c004cfda3 (diff)
downloadPeerTube-cbe2f7c34822b1bd3b1f8c691f79f0c29cf21f07.tar.gz
PeerTube-cbe2f7c34822b1bd3b1f8c691f79f0c29cf21f07.tar.zst
PeerTube-cbe2f7c34822b1bd3b1f8c691f79f0c29cf21f07.zip
Refractoring and add thumbnails support (without tests)
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r--server/initializers/constants.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index dc08805b9..bb141456a 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -18,6 +18,12 @@ const PODS_SCORE = {
18// Number of retries we make for the make retry requests (to friends...) 18// Number of retries we make for the make retry requests (to friends...)
19let REQUEST_RETRIES = 10 19let REQUEST_RETRIES = 10
20 20
21// Videos thumbnail size
22const THUMBNAILS_SIZE = '200x110'
23
24// Path for access to thumbnails with express router
25const THUMBNAILS_STATIC_PATH = '/static/thumbnails'
26
21// Special constants for a test instance 27// Special constants for a test instance
22if (isTestInstance() === true) { 28if (isTestInstance() === true) {
23 FRIEND_BASE_SCORE = 20 29 FRIEND_BASE_SCORE = 20
@@ -32,7 +38,9 @@ module.exports = {
32 FRIEND_BASE_SCORE: FRIEND_BASE_SCORE, 38 FRIEND_BASE_SCORE: FRIEND_BASE_SCORE,
33 INTERVAL: INTERVAL, 39 INTERVAL: INTERVAL,
34 PODS_SCORE: PODS_SCORE, 40 PODS_SCORE: PODS_SCORE,
35 REQUEST_RETRIES: REQUEST_RETRIES 41 REQUEST_RETRIES: REQUEST_RETRIES,
42 THUMBNAILS_SIZE: THUMBNAILS_SIZE,
43 THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH
36} 44}
37 45
38// --------------------------------------------------------------------------- 46// ---------------------------------------------------------------------------