aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/config.ts
diff options
context:
space:
mode:
authorYohan Boniface <yb@enix.org>2019-05-17 14:10:19 +0200
committerChocobozzz <me@florianbigard.com>2019-05-17 14:10:19 +0200
commitb5bfadf0b5365481179936fd3058134fd8be8e18 (patch)
tree2f6a0ffec342680d2c05af3e0b1494e1d6bd68c2 /server/initializers/config.ts
parent3daaa1927474869f8dbaddd6b94b4c071e314e10 (diff)
downloadPeerTube-b5bfadf0b5365481179936fd3058134fd8be8e18.tar.gz
PeerTube-b5bfadf0b5365481179936fd3058134fd8be8e18.tar.zst
PeerTube-b5bfadf0b5365481179936fd3058134fd8be8e18.zip
Allow to control emails prefix and signature with config (#1789)
* Allow to control emails prefix and signature with config * Adapt email config according to @Chocobozzz review
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r--server/initializers/config.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index 4f77e144d..723755c45 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')),