Skip to content

Commit 696441b

Browse files
committed
Make DNS TXT record TTL configurable in entrypoint and deployment scripts.
1 parent c11d739 commit 696441b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

gateway/dstack-app/builder/entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ renew_interval = "1h"
118118
renew_before_expiration = "10d"
119119
renew_timeout = "5m"
120120
max_dns_wait = "${CERTBOT_MAX_DNS_WAIT:-5m}"
121+
dns_txt_ttl = "${CERTBOT_DNS_TXT_TTL:-60}"
121122
122123
[core.wg]
123124
public_key = "$PUBLIC_KEY"

gateway/dstack-app/deploy-to-vmm.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ GUEST_AGENT_ADDR=127.0.0.1:9206
8282
WG_ADDR=0.0.0.0:9202
8383
8484
CERTBOT_MAX_DNS_WAIT=5m
85+
CERTBOT_DNS_TXT_TTL=60
8586
8687
# The token used to launch the App
8788
APP_LAUNCH_TOKEN=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
@@ -141,6 +142,7 @@ SUBNET_INDEX=$SUBNET_INDEX
141142
APP_LAUNCH_TOKEN=$APP_LAUNCH_TOKEN
142143
RPC_DOMAIN=$RPC_DOMAIN
143144
CERTBOT_MAX_DNS_WAIT=$CERTBOT_MAX_DNS_WAIT
145+
CERTBOT_DNS_TXT_TTL=$CERTBOT_DNS_TXT_TTL
144146
EOF
145147

146148
if [ -n "$APP_COMPOSE_FILE" ]; then

0 commit comments

Comments
 (0)