aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 2c64efe1f..745e50168 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -5,7 +5,7 @@ import { ActivityPubActorType } from '../../shared/models/activitypub'
5import { FollowState } from '../../shared/models/actors' 5import { FollowState } from '../../shared/models/actors'
6import { VideoPrivacy } from '../../shared/models/videos' 6import { VideoPrivacy } from '../../shared/models/videos'
7// Do not use barrels, remain constants as independent as possible 7// Do not use barrels, remain constants as independent as possible
8import { isTestInstance, root, sanitizeHost, sanitizeUrl } from '../helpers/core-utils' 8import { buildPath, isTestInstance, root, sanitizeHost, sanitizeUrl } from '../helpers/core-utils'
9 9
10// --------------------------------------------------------------------------- 10// ---------------------------------------------------------------------------
11 11
@@ -93,13 +93,13 @@ const CONFIG = {
93 PASSWORD: config.get<string>('database.password') 93 PASSWORD: config.get<string>('database.password')
94 }, 94 },
95 STORAGE: { 95 STORAGE: {
96 AVATARS_DIR: join(root(), config.get<string>('storage.avatars')), 96 AVATARS_DIR: buildPath(config.get<string>('storage.avatars')),
97 LOG_DIR: join(root(), config.get<string>('storage.logs')), 97 LOG_DIR: buildPath(config.get<string>('storage.logs')),
98 VIDEOS_DIR: join(root(), config.get<string>('storage.videos')), 98 VIDEOS_DIR: buildPath(config.get<string>('storage.videos')),
99 THUMBNAILS_DIR: join(root(), config.get<string>('storage.thumbnails')), 99 THUMBNAILS_DIR: buildPath(config.get<string>('storage.thumbnails')),
100 PREVIEWS_DIR: join(root(), config.get<string>('storage.previews')), 100 PREVIEWS_DIR: buildPath(config.get<string>('storage.previews')),
101 TORRENTS_DIR: join(root(), config.get<string>('storage.torrents')), 101 TORRENTS_DIR: buildPath(config.get<string>('storage.torrents')),
102 CACHE_DIR: join(root(), config.get<string>('storage.cache')) 102 CACHE_DIR: buildPath(config.get<string>('storage.cache'))
103 }, 103 },
104 WEBSERVER: { 104 WEBSERVER: {
105 SCHEME: config.get<boolean>('webserver.https') === true ? 'https' : 'http', 105 SCHEME: config.get<boolean>('webserver.https') === true ? 'https' : 'http',