diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-10-07 10:10:00 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-10-07 10:10:00 +0200 |
commit | aff36eb063573532498979c83be1c279c84f2d53 (patch) | |
tree | 3f79dc7373689f0493e80a6e501225fd0cd7aa26 /server/initializers/constants.js | |
parent | c3117f13d599f37693f937865b6e84eb1f72d5c4 (diff) | |
parent | a6375e69668ea42e19531c6bc68dcd37f3f7cbd7 (diff) | |
download | PeerTube-aff36eb063573532498979c83be1c279c84f2d53.tar.gz PeerTube-aff36eb063573532498979c83be1c279c84f2d53.tar.zst PeerTube-aff36eb063573532498979c83be1c279c84f2d53.zip |
Merge branch 'webseed'
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 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 |
123 | const BCRYPT_SALT_SIZE = 10 | 123 | const BCRYPT_SALT_SIZE = 10 |
124 | 124 | ||
125 | // Express static paths (router) | ||
126 | const STATIC_PATHS = { | ||
127 | THUMBNAILS: '/static/thumbnails', | ||
128 | TORRENTS: '/static/torrents/', | ||
129 | WEBSEED: '/static/webseed/' | ||
130 | } | ||
131 | |||
125 | // Videos thumbnail size | 132 | // Videos thumbnail size |
126 | const THUMBNAILS_SIZE = '200x110' | 133 | const THUMBNAILS_SIZE = '200x110' |
127 | 134 | ||
128 | // Path for access to thumbnails with express router | ||
129 | const THUMBNAILS_STATIC_PATH = '/static/thumbnails' | ||
130 | |||
131 | const USER_ROLES = { | 135 | const 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 | ||