From ca32172e1dd9bb6469ffa106a6b4b1e923adcca2 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 7 Sep 2025 22:04:57 -0400 Subject: [PATCH] fix: do not generate https urls when there is no certificate available --- plugins/domains/internal-functions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/domains/internal-functions b/plugins/domains/internal-functions index 28cda472c..e839d2f27 100755 --- a/plugins/domains/internal-functions +++ b/plugins/domains/internal-functions @@ -147,10 +147,14 @@ fn-domains-generate-urls-from-config() { done shopt -u nullglob elif [[ -n "$APP_PORT_MAP" ]]; then + CERTS_EXIST="$(plugn trigger certs-exists "$APP")" local port_map while IFS= read -r port_map; do local scheme="$(awk -F ':' '{ print $1 }' <<<"$port_map")" local listen_port="$(awk -F ':' '{ print $2 }' <<<"$port_map")" + if [[ "$CERTS_EXIST" != "true" ]] && [[ "$scheme" == "https" ]]; then + continue + fi fn-domains-generate-url "$scheme" "$VHOST" "$listen_port" done <<<"$APP_PORT_MAP" else