diff options
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 4f77e144d..bb278ba43 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -44,6 +44,14 @@ const CONFIG = { | |||
44 | CA_FILE: config.get<string>('smtp.ca_file'), | 44 | CA_FILE: config.get<string>('smtp.ca_file'), |
45 | FROM_ADDRESS: config.get<string>('smtp.from_address') | 45 | FROM_ADDRESS: config.get<string>('smtp.from_address') |
46 | }, | 46 | }, |
47 | EMAIL: { | ||
48 | BODY: { | ||
49 | SIGNATURE: config.get<string>('email.body.signature') | ||
50 | }, | ||
51 | OBJECT: { | ||
52 | PREFIX: config.get<string>('email.object.prefix') + ' ' | ||
53 | } | ||
54 | }, | ||
47 | STORAGE: { | 55 | STORAGE: { |
48 | TMP_DIR: buildPath(config.get<string>('storage.tmp')), | 56 | TMP_DIR: buildPath(config.get<string>('storage.tmp')), |
49 | AVATARS_DIR: buildPath(config.get<string>('storage.avatars')), | 57 | AVATARS_DIR: buildPath(config.get<string>('storage.avatars')), |
@@ -75,7 +83,8 @@ const CONFIG = { | |||
75 | }, | 83 | }, |
76 | TRUST_PROXY: config.get<string[]>('trust_proxy'), | 84 | TRUST_PROXY: config.get<string[]>('trust_proxy'), |
77 | LOG: { | 85 | LOG: { |
78 | LEVEL: config.get<string>('log.level') | 86 | LEVEL: config.get<string>('log.level'), |
87 | ROTATION: config.get<boolean>('log.rotation.enabled') | ||
79 | }, | 88 | }, |
80 | SEARCH: { | 89 | SEARCH: { |
81 | REMOTE_URI: { | 90 | REMOTE_URI: { |
@@ -140,13 +149,15 @@ const CONFIG = { | |||
140 | TRANSCODING: { | 149 | TRANSCODING: { |
141 | get ENABLED () { return config.get<boolean>('transcoding.enabled') }, | 150 | get ENABLED () { return config.get<boolean>('transcoding.enabled') }, |
142 | get ALLOW_ADDITIONAL_EXTENSIONS () { return config.get<boolean>('transcoding.allow_additional_extensions') }, | 151 | get ALLOW_ADDITIONAL_EXTENSIONS () { return config.get<boolean>('transcoding.allow_additional_extensions') }, |
152 | get ALLOW_AUDIO_FILES () { return config.get<boolean>('transcoding.allow_audio_files') }, | ||
143 | get THREADS () { return config.get<number>('transcoding.threads') }, | 153 | get THREADS () { return config.get<number>('transcoding.threads') }, |
144 | RESOLUTIONS: { | 154 | RESOLUTIONS: { |
145 | get '240p' () { return config.get<boolean>('transcoding.resolutions.240p') }, | 155 | get '240p' () { return config.get<boolean>('transcoding.resolutions.240p') }, |
146 | get '360p' () { return config.get<boolean>('transcoding.resolutions.360p') }, | 156 | get '360p' () { return config.get<boolean>('transcoding.resolutions.360p') }, |
147 | get '480p' () { return config.get<boolean>('transcoding.resolutions.480p') }, | 157 | get '480p' () { return config.get<boolean>('transcoding.resolutions.480p') }, |
148 | get '720p' () { return config.get<boolean>('transcoding.resolutions.720p') }, | 158 | get '720p' () { return config.get<boolean>('transcoding.resolutions.720p') }, |
149 | get '1080p' () { return config.get<boolean>('transcoding.resolutions.1080p') } | 159 | get '1080p' () { return config.get<boolean>('transcoding.resolutions.1080p') }, |
160 | get '2160p' () { return config.get<boolean>('transcoding.resolutions.2160p') } | ||
150 | }, | 161 | }, |
151 | HLS: { | 162 | HLS: { |
152 | get ENABLED () { return config.get<boolean>('transcoding.hls.enabled') } | 163 | get ENABLED () { return config.get<boolean>('transcoding.hls.enabled') } |