From dd2c2a52ccd07bcb2317dcc6ce45a2291e6bad62 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jun 2019 10:50:16 +0200 Subject: [PATCH] Fix email object/body configurations --- config/production.yaml.example | 8 ++++++-- server/initializers/checker-before-init.ts | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/production.yaml.example b/config/production.yaml.example index c025426bb..bd0d956bd 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example @@ -54,6 +54,12 @@ smtp: ca_file: null # Used for self signed certificates from_address: 'admin@example.com' +email: + body: + signature: "PeerTube" + object: + prefix: "[PeerTube]" + # From the project root directory storage: tmp: '/var/www/peertube/storage/tmp/' # Used to download data (imports etc), store uploaded files before processing... @@ -248,8 +254,6 @@ instance: "# If you would like to report a security issue\n# you may report it to:\nContact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md\nContact: mailto:" services: - # You can provide a reporting endpoint for Content Security Policy violations - csp-logger: # Cards configuration to format video in Twitter twitter: username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published diff --git a/server/initializers/checker-before-init.ts b/server/initializers/checker-before-init.ts index 622ad7d6b..c211d725c 100644 --- a/server/initializers/checker-before-init.ts +++ b/server/initializers/checker-before-init.ts @@ -10,6 +10,7 @@ function checkMissedConfig () { 'trust_proxy', 'database.hostname', 'database.port', 'database.suffix', 'database.username', 'database.password', 'database.pool.max', 'smtp.hostname', 'smtp.port', 'smtp.username', 'smtp.password', 'smtp.tls', 'smtp.from_address', + 'email.body.signature', 'email.object.prefix', 'storage.avatars', 'storage.videos', 'storage.logs', 'storage.previews', 'storage.thumbnails', 'storage.torrents', 'storage.cache', 'storage.redundancy', 'storage.tmp', 'storage.streaming_playlists', 'log.level', -- 2.25.1