Skip to content

Commit 5951f0d

Browse files
committed
imp: set default TXT_PREFIX automatically
1 parent 68b6d61 commit 5951f0d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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)