File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ services:
2727 - CF_API_TOKEN=${CF_API_TOKEN}
2828 - CF_ZONE_ID=${CF_ZONE_ID}
2929 - MY_URL=${MY_URL}
30+ - BOOTNODE_URL=${BOOTNODE_URL}
3031 - ACME_STAGING=${ACME_STAGING}
3132 - SUBNET_INDEX=${SUBNET_INDEX}
3233 - RUST_LOG=info,certbot=debug
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ if [[ ! "$SUBNET_INDEX" =~ ^[0-9]+$ ]] || [ "$SUBNET_INDEX" -lt 0 ] || [ "$SUBNE
5353 exit 1
5454fi
5555
56+ SYNC_ENABLED=$( [ -z " $BOOTNODE_URL " ] && echo " false" || echo " true" )
5657# The IP address of this dstack-gateway node
5758IP=" 10.4.0.$(( SUBNET_INDEX + 1 )) /16"
5859# Reserving 5 bits(32 IPs) for server use
@@ -63,6 +64,7 @@ CLIENT_RANGE="10.4.$((SUBNET_INDEX * 16)).0/20"
6364echo " IP: $IP "
6465echo " RESERVED_NET: $RESERVED_NET "
6566echo " CLIENT_RANGE: $CLIENT_RANGE "
67+ echo " SYNC_ENABLED: $SYNC_ENABLED "
6668
6769# Create gateway.toml configuration
6870cat > $CONFIG_PATH << EOF
@@ -86,7 +88,7 @@ rpc_domain = "gateway.$SRV_DOMAIN"
8688run_in_dstack = true
8789
8890[core.sync]
89- enabled = false
91+ enabled = $SYNC_ENABLED
9092interval = "30s"
9193my_url = "$MY_URL "
9294bootnode = "$BOOTNODE_URL "
You can’t perform that action at this time.
0 commit comments