diff options
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r-- | server/initializers/constants.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 6ba8a9da0..a6adb75bf 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js | |||
@@ -118,16 +118,21 @@ const REQUEST_ENDPOINTS = { | |||
118 | VIDEOS: 'videos' | 118 | VIDEOS: 'videos' |
119 | } | 119 | } |
120 | 120 | ||
121 | // --------------------------------------------------------------------------- | ||
122 | |||
123 | const REMOTE_SCHEME = { | 121 | const REMOTE_SCHEME = { |
124 | HTTP: 'https', | 122 | HTTP: 'https', |
125 | WS: 'wss' | 123 | WS: 'wss' |
126 | } | 124 | } |
127 | 125 | ||
126 | // --------------------------------------------------------------------------- | ||
127 | |||
128 | const SIGNATURE_ALGORITHM = 'RSA-SHA256' | ||
129 | const SIGNATURE_ENCODING = 'hex' | ||
130 | |||
128 | // Password encryption | 131 | // Password encryption |
129 | const BCRYPT_SALT_SIZE = 10 | 132 | const BCRYPT_SALT_SIZE = 10 |
130 | 133 | ||
134 | // --------------------------------------------------------------------------- | ||
135 | |||
131 | // Express static paths (router) | 136 | // Express static paths (router) |
132 | const STATIC_PATHS = { | 137 | const STATIC_PATHS = { |
133 | PREVIEWS: '/static/previews/', | 138 | PREVIEWS: '/static/previews/', |
@@ -143,6 +148,8 @@ let STATIC_MAX_AGE = '30d' | |||
143 | const THUMBNAILS_SIZE = '200x110' | 148 | const THUMBNAILS_SIZE = '200x110' |
144 | const PREVIEWS_SIZE = '640x480' | 149 | const PREVIEWS_SIZE = '640x480' |
145 | 150 | ||
151 | // --------------------------------------------------------------------------- | ||
152 | |||
146 | const USER_ROLES = { | 153 | const USER_ROLES = { |
147 | ADMIN: 'admin', | 154 | ADMIN: 'admin', |
148 | USER: 'user' | 155 | USER: 'user' |
@@ -180,6 +187,8 @@ module.exports = { | |||
180 | REQUESTS_LIMIT, | 187 | REQUESTS_LIMIT, |
181 | RETRY_REQUESTS, | 188 | RETRY_REQUESTS, |
182 | SEARCHABLE_COLUMNS, | 189 | SEARCHABLE_COLUMNS, |
190 | SIGNATURE_ALGORITHM, | ||
191 | SIGNATURE_ENCODING, | ||
183 | SORTABLE_COLUMNS, | 192 | SORTABLE_COLUMNS, |
184 | STATIC_MAX_AGE, | 193 | STATIC_MAX_AGE, |
185 | STATIC_PATHS, | 194 | STATIC_PATHS, |