From 65bcc568c7aa75dec610129dd66ac37635b113d7 Mon Sep 17 00:00:00 2001 From: Wei He Date: Sat, 28 May 2022 15:24:53 +0800 Subject: [PATCH] support manual cert --- argocd/ingressroute-server.yaml.sh | 16 ++++++--- deploy_jitsi.sh | 33 +++++++++++++++---- jitsi/Chart.yaml | 2 +- jitsi/templates/ingressroute-redir.yaml | 15 --------- jitsi/templates/ingressroute-web.yaml | 28 ++++++++++++++-- jitsi/templates/middleware-redirect.yaml | 7 ++++ .../middleware-redirectregex-any.yaml | 8 ----- tlsstore.yaml | 8 +++++ 8 files changed, 79 insertions(+), 38 deletions(-) delete mode 100644 jitsi/templates/ingressroute-redir.yaml create mode 100644 jitsi/templates/middleware-redirect.yaml delete mode 100644 jitsi/templates/middleware-redirectregex-any.yaml create mode 100644 tlsstore.yaml diff --git a/argocd/ingressroute-server.yaml.sh b/argocd/ingressroute-server.yaml.sh index 1f52d1c..613f0ff 100755 --- a/argocd/ingressroute-server.yaml.sh +++ b/argocd/ingressroute-server.yaml.sh @@ -1,3 +1,11 @@ +if [ -n "${FQDN}" ]; then + HOST_RULE="Host(\`${FQDN}\`)" + TLS_CERT_RESOLVER="certResolver: ${CERT_RESOLVER}" +else + HOST_RULE="Host(\`${PUBLIC_IP}\`)" + TLS_MAP="{}" +fi + cat <