summary refs log tree commit diff
diff options
context:
space:
mode:
authorJorik Schellekens <joriks@matrix.org>2019-08-27 14:39:20 +0100
committerJorik Schellekens <joriks@matrix.org>2019-08-28 15:59:54 +0100
commit8e1d22c6f731a459f47d29cba072ef575d0c604f (patch)
tree77784a85e899af20758e5268cf8d4007837a7c1e
parentWe need to check that the pasth is abs and we don't need to validate (diff)
downloadsynapse-8e1d22c6f731a459f47d29cba072ef575d0c604f.tar.xz
Remove option to upload tls certs
-rw-r--r--synapse_topology/webui/src/js/components/TLS.jsx19
1 files 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 ({
                         <p>
                             You need root to listen on ports 0 to 1024 inclusive and running
                             synapse with root privileges is <b>strongly discouraged</b>.
-                                                                                                                    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.
                         </p>
                         <p>
                             (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</button>
 
-                        <hr />
-
-                        <p>Or, upload a cert file.</p>
-                        <input type="file" name="cert" onChange={e => setCertFile(e.target.files[0])} />
-                        <p>Upload the cert's private key file.</p>
-                        <input type="file" name="certkey" onChange={e => setCertKeyFile(e.target.files[0])} />
-                        <button
-                            className="inputButton"
-                            disabled={certFile && certKeyFile ? undefined : true}
-                            onClick={() => onClickCertUpload(certFile, certKeyFile, toggle)}
-                        >Upload cert</button>
                     </Tab>
                 </Tabs>
             </Card.Body>