From f17112a97ff7e40ec8da21226cfd76b89dcea380 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Fri, 30 Sep 2022 12:38:11 +0200 Subject: [PATCH] Add email field for Let's Encrypt certification --- src/views/Settings.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/views/Settings.js b/src/views/Settings.js index 61ce9df..2ee5ae4 100644 --- a/src/views/Settings.js +++ b/src/views/Settings.js @@ -175,6 +175,18 @@ const configValues = { return null; }, }, + 'tls.email': { + tab: 'network', + set: (config, value) => { + config.tls.email = value; + }, + unset: (config) => { + delete config.tls.email; + }, + validate: (config) => { + return null; + }, + }, 'api.auth.enable': { tab: 'auth', set: (config, value) => { @@ -1447,6 +1459,22 @@ export default function Settings(props) { Let's Encrypt requires one or more public domain names and an accessible port 80/TCP. + + Email} + env={env('tls.email')} + disabled={env('tls.email') || !config.tls.auto} + value={config.tls.email} + onChange={handleChange('tls.email')} + /> + + + + Please enter your email address to signify agreement with the Let's Encrypt CA's terms of service and to be notified + in case of issues. + + +