diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-10 21:19:24 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-10 21:19:24 +0200 |
commit | cbe2f7c34822b1bd3b1f8c691f79f0c29cf21f07 (patch) | |
tree | ce678124210db8b03b2a523e3b92a14cc403eeee /server/initializers/constants.js | |
parent | f1dae018681936b556b2496b7f2d872c004cfda3 (diff) | |
download | PeerTube-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.js | 10 |
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...) |
19 | let REQUEST_RETRIES = 10 | 19 | let REQUEST_RETRIES = 10 |
20 | 20 | ||
21 | // Videos thumbnail size | ||
22 | const THUMBNAILS_SIZE = '200x110' | ||
23 | |||
24 | // Path for access to thumbnails with express router | ||
25 | const THUMBNAILS_STATIC_PATH = '/static/thumbnails' | ||
26 | |||
21 | // Special constants for a test instance | 27 | // Special constants for a test instance |
22 | if (isTestInstance() === true) { | 28 | if (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 | // --------------------------------------------------------------------------- |