Skip to content

Commit 3d4e24b

Browse files
authored
Merge pull request #53 from Dstack-TEE/fix-ingress
Fix ingress
2 parents 7f3face + 2e51eac commit 3d4e24b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

custom-domain/dstack-ingress/scripts/certman.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Add script directory to path to import dns_providers
1111
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
1212

13-
from .dns_providers.base import DNSProvider
13+
1414
from dns_providers import DNSProviderFactory
1515

1616

custom-domain/dstack-ingress/scripts/entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
set -e
44

55
PORT=${PORT:-443}
6-
TXT_PREFIX=${TXT_PREFIX:-"_tapp-address"}
6+
if [[ -e /var/run/dstack.sock ]]; then
7+
TXT_PREFIX=${TXT_PREFIX:-"_dstack-app-address"}
8+
else
9+
TXT_PREFIX=${TXT_PREFIX:-"_tapp-address"}
10+
fi
711

812
echo "Setting up certbot environment"
913

0 commit comments

Comments
 (0)