From 68b6d61634663cb86ee3c52b68059d7cd5ccf3f3 Mon Sep 17 00:00:00 2001 From: Leechael Yim Date: Fri, 22 Aug 2025 22:19:12 +0800 Subject: [PATCH 1/3] fix: import error --- custom-domain/dstack-ingress/scripts/certman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom-domain/dstack-ingress/scripts/certman.py b/custom-domain/dstack-ingress/scripts/certman.py index 68809e8..9ed95f3 100644 --- a/custom-domain/dstack-ingress/scripts/certman.py +++ b/custom-domain/dstack-ingress/scripts/certman.py @@ -10,7 +10,7 @@ # Add script directory to path to import dns_providers sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) -from .dns_providers.base import DNSProvider +from dns_providers.base import DNSProvider from dns_providers import DNSProviderFactory From 5951f0db59e409c827287b5d537121e668bc3483 Mon Sep 17 00:00:00 2001 From: Leechael Yim Date: Sat, 23 Aug 2025 00:12:51 +0800 Subject: [PATCH 2/3] imp: set default TXT_PREFIX automatically --- custom-domain/dstack-ingress/scripts/entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/custom-domain/dstack-ingress/scripts/entrypoint.sh b/custom-domain/dstack-ingress/scripts/entrypoint.sh index a008b33..724469f 100644 --- a/custom-domain/dstack-ingress/scripts/entrypoint.sh +++ b/custom-domain/dstack-ingress/scripts/entrypoint.sh @@ -3,7 +3,11 @@ set -e PORT=${PORT:-443} -TXT_PREFIX=${TXT_PREFIX:-"_tapp-address"} +if [[ -e /var/run/dstack.sock ]]; then + TXT_PREFIX=${TXT_PREFIX:-"_dstack-app-address"} +else + TXT_PREFIX=${TXT_PREFIX:-"_tapp-address"} +fi echo "Setting up certbot environment" From 2e51eac632547d2b8b01fb5981a3042bf7234917 Mon Sep 17 00:00:00 2001 From: Leechael Date: Sat, 23 Aug 2025 00:17:22 +0800 Subject: [PATCH 3/3] Potential fix for code scanning alert no. 19: Unused import Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- custom-domain/dstack-ingress/scripts/certman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom-domain/dstack-ingress/scripts/certman.py b/custom-domain/dstack-ingress/scripts/certman.py index 9ed95f3..2c037d3 100644 --- a/custom-domain/dstack-ingress/scripts/certman.py +++ b/custom-domain/dstack-ingress/scripts/certman.py @@ -10,7 +10,7 @@ # Add script directory to path to import dns_providers sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) -from dns_providers.base import DNSProvider + from dns_providers import DNSProviderFactory