From a4101923e699e49ceb9ff36e971c75417fafc9f0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 9 Jan 2019 15:14:29 +0100 Subject: Implement contact form on server side --- config/default.yaml | 7 ++++++- config/production.yaml.example | 5 +++++ config/test.yaml | 3 +++ 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/default.yaml b/config/default.yaml index 5fdb41250..e16b8c352 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -102,7 +102,12 @@ cache: size: 500 # Max number of video captions/subtitles you want to cache admin: - email: 'admin@example.com' # Your personal email as administrator + # Used to generate the root user at first startup + # And to receive emails from the contact form + email: 'admin@example.com' + +contact_form: + enabled: true signup: enabled: false diff --git a/config/production.yaml.example b/config/production.yaml.example index c0dbf64b6..661eac0d5 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example @@ -115,8 +115,13 @@ cache: size: 500 # Max number of video captions/subtitles you want to cache admin: + # Used to generate the root user at first startup + # And to receive emails from the contact form email: 'admin@example.com' +contact_form: + enabled: true + signup: enabled: false limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited diff --git a/config/test.yaml b/config/test.yaml index 6e9c56e0a..aba5dd73c 100644 --- a/config/test.yaml +++ b/config/test.yaml @@ -21,6 +21,9 @@ smtp: log: level: 'debug' +contact_form: + enabled: true + redundancy: videos: check_interval: '10 minutes' -- cgit v1.2.3