diff options
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index e3d779456..144a4edbf 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -14,7 +14,7 @@ import { FollowState } from '../../shared/models/accounts/follow.model' | |||
14 | 14 | ||
15 | // --------------------------------------------------------------------------- | 15 | // --------------------------------------------------------------------------- |
16 | 16 | ||
17 | const LAST_MIGRATION_VERSION = 110 | 17 | const LAST_MIGRATION_VERSION = 115 |
18 | 18 | ||
19 | // --------------------------------------------------------------------------- | 19 | // --------------------------------------------------------------------------- |
20 | 20 | ||
@@ -60,6 +60,7 @@ const CONFIG = { | |||
60 | PASSWORD: config.get<string>('database.password') | 60 | PASSWORD: config.get<string>('database.password') |
61 | }, | 61 | }, |
62 | STORAGE: { | 62 | STORAGE: { |
63 | AVATARS_DIR: join(root(), config.get<string>('storage.avatars')), | ||
63 | LOG_DIR: join(root(), config.get<string>('storage.logs')), | 64 | LOG_DIR: join(root(), config.get<string>('storage.logs')), |
64 | VIDEOS_DIR: join(root(), config.get<string>('storage.videos')), | 65 | VIDEOS_DIR: join(root(), config.get<string>('storage.videos')), |
65 | THUMBNAILS_DIR: join(root(), config.get<string>('storage.thumbnails')), | 66 | THUMBNAILS_DIR: join(root(), config.get<string>('storage.thumbnails')), |
@@ -105,6 +106,9 @@ const CONFIG = { | |||
105 | CONFIG.WEBSERVER.URL = CONFIG.WEBSERVER.SCHEME + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT | 106 | CONFIG.WEBSERVER.URL = CONFIG.WEBSERVER.SCHEME + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT |
106 | CONFIG.WEBSERVER.HOST = CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT | 107 | CONFIG.WEBSERVER.HOST = CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT |
107 | 108 | ||
109 | const AVATARS_DIR = { | ||
110 | ACCOUNT: join(CONFIG.STORAGE.AVATARS_DIR, 'account') | ||
111 | } | ||
108 | // --------------------------------------------------------------------------- | 112 | // --------------------------------------------------------------------------- |
109 | 113 | ||
110 | const CONSTRAINTS_FIELDS = { | 114 | const CONSTRAINTS_FIELDS = { |
@@ -356,6 +360,7 @@ export { | |||
356 | PREVIEWS_SIZE, | 360 | PREVIEWS_SIZE, |
357 | REMOTE_SCHEME, | 361 | REMOTE_SCHEME, |
358 | FOLLOW_STATES, | 362 | FOLLOW_STATES, |
363 | AVATARS_DIR, | ||
359 | SEARCHABLE_COLUMNS, | 364 | SEARCHABLE_COLUMNS, |
360 | SERVER_ACCOUNT_NAME, | 365 | SERVER_ACCOUNT_NAME, |
361 | PRIVATE_RSA_KEY_SIZE, | 366 | PRIVATE_RSA_KEY_SIZE, |