diff options
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r-- | server/initializers/constants.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 467816f2c..e0ea188af 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js | |||
@@ -49,12 +49,16 @@ const SORTABLE_COLUMNS = { | |||
49 | VIDEOS: [ 'name', '-name', 'duration', '-duration', 'createdDate', '-createdDate' ] | 49 | VIDEOS: [ 'name', '-name', 'duration', '-duration', 'createdDate', '-createdDate' ] |
50 | } | 50 | } |
51 | 51 | ||
52 | // Express static paths (router) | ||
53 | const STATIC_PATHS = { | ||
54 | THUMBNAILS: '/static/thumbnails', | ||
55 | TORRENTS: '/static/torrents/', | ||
56 | WEBSEED: '/static/webseed/' | ||
57 | } | ||
58 | |||
52 | // Videos thumbnail size | 59 | // Videos thumbnail size |
53 | const THUMBNAILS_SIZE = '200x110' | 60 | const THUMBNAILS_SIZE = '200x110' |
54 | 61 | ||
55 | // Path for access to thumbnails with express router | ||
56 | const THUMBNAILS_STATIC_PATH = '/static/thumbnails' | ||
57 | |||
58 | const VIDEOS_CONSTRAINTS_FIELDS = { | 62 | const VIDEOS_CONSTRAINTS_FIELDS = { |
59 | NAME: { min: 3, max: 50 }, // Length | 63 | NAME: { min: 3, max: 50 }, // Length |
60 | DESCRIPTION: { min: 3, max: 250 }, // Length | 64 | DESCRIPTION: { min: 3, max: 250 }, // Length |
@@ -89,8 +93,8 @@ module.exports = { | |||
89 | SEARCHABLE_COLUMNS: SEARCHABLE_COLUMNS, | 93 | SEARCHABLE_COLUMNS: SEARCHABLE_COLUMNS, |
90 | SEEDS_IN_PARALLEL: SEEDS_IN_PARALLEL, | 94 | SEEDS_IN_PARALLEL: SEEDS_IN_PARALLEL, |
91 | SORTABLE_COLUMNS: SORTABLE_COLUMNS, | 95 | SORTABLE_COLUMNS: SORTABLE_COLUMNS, |
96 | STATIC_PATHS: STATIC_PATHS, | ||
92 | THUMBNAILS_SIZE: THUMBNAILS_SIZE, | 97 | THUMBNAILS_SIZE: THUMBNAILS_SIZE, |
93 | THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH, | ||
94 | VIDEOS_CONSTRAINTS_FIELDS: VIDEOS_CONSTRAINTS_FIELDS | 98 | VIDEOS_CONSTRAINTS_FIELDS: VIDEOS_CONSTRAINTS_FIELDS |
95 | } | 99 | } |
96 | 100 | ||