From cb4319bee0de3666a0dbeb1274ddcb4652338fe0 Mon Sep 17 00:00:00 2001 From: Yann Stepienik Date: Tue, 4 Jul 2023 11:52:38 +0100 Subject: [PATCH] [release] v0.9.0-unstable10 --- client/src/pages/config/routes/newRoute.jsx | 2 +- client/src/pages/config/users/restart.jsx | 49 +++++++++++++------ .../pages/servapps/containers/newService.jsx | 2 +- client/src/pages/servapps/servapps.jsx | 2 +- package.json | 2 +- src/utils/middleware.go | 2 +- 6 files changed, 39 insertions(+), 20 deletions(-) diff --git a/client/src/pages/config/routes/newRoute.jsx b/client/src/pages/config/routes/newRoute.jsx index 802c6a7..9fda288 100644 --- a/client/src/pages/config/routes/newRoute.jsx +++ b/client/src/pages/config/routes/newRoute.jsx @@ -30,7 +30,7 @@ const NewRouteCreate = ({ openNewModal, setOpenNewModal, config }) => { const routes = config.HTTPConfig.ProxyConfig.Routes || []; return <> - + setOpenNewModal(false)}> New URL {openNewModal && <> diff --git a/client/src/pages/config/users/restart.jsx b/client/src/pages/config/users/restart.jsx index 6a843f5..8f15e66 100644 --- a/client/src/pages/config/users/restart.jsx +++ b/client/src/pages/config/users/restart.jsx @@ -34,27 +34,46 @@ function checkIsOnline() { }); } -const RestartModal = ({openModal, setOpenModal, config}) => { +const RestartModal = ({openModal, setOpenModal, config, newRoute }) => { const [isRestarting, setIsRestarting] = useState(false); const [warn, setWarn] = useState(false); const needsRefresh = config && (config.HTTPConfig.HTTPSCertificateMode == "SELFSIGNED" || !isDomain(config.HTTPConfig.Hostname)) const isNotDomain = config && !isDomain(config.HTTPConfig.Hostname); + const newRouteWarning = config.HTTPConfig.HTTPSCertificateMode == "LETSENCRYPT" && newRoute && + !config.HTTPConfig.DNSChallengeProvider; - return config ? (needsRefresh && <> - setOpenModal(false)}> - Refresh Page - - - You need to refresh the page because you are using a self-signed certificate, in case you have to accept any new certificates. To avoid it in the future, please use Let's Encrypt. {isNotDomain && 'You are also not using a domain name, the server might go offline for a few seconds to remap your docker ports.'} - - - - - - + return config ? (<> + {needsRefresh && <> + setOpenModal(false)}> + Refresh Page + + + You need to refresh the page because you are using a self-signed certificate, in case you have to accept any new certificates. To avoid it in the future, please use Let's Encrypt. {isNotDomain && 'You are also not using a domain name, the server might go offline for a few seconds to remap your docker ports.'} + + + + + + + } + {newRouteWarning && <> + setOpenModal(false)}> + Certificate Renewal + + + You are using Let's Encrypt but you are not using the DNS Challenge. This means the server has to renew the certificate everytime you add a new hostname, causing a few seconds of downtime. To avoid it in the future, please use the DNS Challenge. + + + + + + + } ) :(<> setOpenModal(false)}> diff --git a/client/src/pages/servapps/containers/newService.jsx b/client/src/pages/servapps/containers/newService.jsx index 7c77b3b..4c0b69f 100644 --- a/client/src/pages/servapps/containers/newService.jsx +++ b/client/src/pages/servapps/containers/newService.jsx @@ -96,7 +96,7 @@ const NewDockerService = ({service, refresh}) => { return
- + {!isDone && { } return
- +