From 8e1d22c6f731a459f47d29cba072ef575d0c604f Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Tue, 27 Aug 2019 14:39:20 +0100 Subject: Remove option to upload tls certs --- synapse_topology/webui/src/js/components/TLS.jsx | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/synapse_topology/webui/src/js/components/TLS.jsx b/synapse_topology/webui/src/js/components/TLS.jsx index 9583bac5fb..48c27e17fb 100644 --- a/synapse_topology/webui/src/js/components/TLS.jsx +++ b/synapse_topology/webui/src/js/components/TLS.jsx @@ -22,11 +22,9 @@ const nginxLink = "https://www.nginx.com/"; export default ({ testingCertPaths, - uploadingCerts, certPathInvalid, certKeyPathInvalid, onClickCertPath, - onClickCertUpload, onClickACME, onClickReverseProxy, }) => { @@ -37,8 +35,6 @@ export default ({ const [certPath, setCertPath] = useState(""); const [certKeyPath, setCertKeyPath] = useState(""); - const [certFile, setCertFile] = useState(); - const [certKeyFile, setCertKeyFile] = useState(); const defaultValue = REVERSE_PROXY_TYPES.NGINX; const [reverseProxy, setReverseProxy] = useState(defaultValue); @@ -72,8 +68,8 @@ export default ({

You need root to listen on ports 0 to 1024 inclusive and running synapse with root privileges is strongly discouraged. - Reverse proxies are more secure, run with root and pass things on - like nobody's business. + Reverse proxies are more secure, run with root and pass things on + like nobody's business.

(Note: you can also have synapse use a non privileged port by @@ -157,17 +153,6 @@ export default ({ onClick={() => onClickCertPath(certPath, certKeyPath, toggle)} >Use TLS Path -


- -

Or, upload a cert file.

- setCertFile(e.target.files[0])} /> -

Upload the cert's private key file.

- setCertKeyFile(e.target.files[0])} /> - -- cgit 1.5.1