aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index b1d033377..be2e3e943 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -122,12 +122,16 @@ const RETRY_REQUESTS = 5
122// Password encryption 122// Password encryption
123const BCRYPT_SALT_SIZE = 10 123const BCRYPT_SALT_SIZE = 10
124 124
125// Express static paths (router)
126const STATIC_PATHS = {
127 THUMBNAILS: '/static/thumbnails',
128 TORRENTS: '/static/torrents/',
129 WEBSEED: '/static/webseed/'
130}
131
125// Videos thumbnail size 132// Videos thumbnail size
126const THUMBNAILS_SIZE = '200x110' 133const THUMBNAILS_SIZE = '200x110'
127 134
128// Path for access to thumbnails with express router
129const THUMBNAILS_STATIC_PATH = '/static/thumbnails'
130
131const USER_ROLES = { 135const USER_ROLES = {
132 ADMIN: 'admin', 136 ADMIN: 'admin',
133 USER: 'user' 137 USER: 'user'
@@ -166,8 +170,8 @@ module.exports = {
166 SEARCHABLE_COLUMNS, 170 SEARCHABLE_COLUMNS,
167 SEEDS_IN_PARALLEL, 171 SEEDS_IN_PARALLEL,
168 SORTABLE_COLUMNS, 172 SORTABLE_COLUMNS,
173 STATIC_PATHS,
169 THUMBNAILS_SIZE, 174 THUMBNAILS_SIZE,
170 THUMBNAILS_STATIC_PATH,
171 USER_ROLES 175 USER_ROLES
172} 176}
173 177