Add default internet transport node for zero-config mesh connectivity

New TinyWeb instances now auto-connect to reticulum.derickphan.com:4242
so users get internet mesh connectivity out of the box without any
manual Reticulum configuration. Env var overrides still supported.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Derick Phan 2026-03-26 20:13:35 -07:00
parent b49b1df8b5
commit 2adef21ec6
No known key found for this signature in database
2 changed files with 38 additions and 10 deletions

View file

@ -20,19 +20,13 @@ if [ ! -f "$CONFIG_FILE" ]; then
[[Default Interface]]
type = AutoInterface
enabled = Yes
EOF
if [ -n "$RNS_TCP_HOST" ]; then
RNS_TCP_PORT="${RNS_TCP_PORT:-4242}"
cat >> "$CONFIG_FILE" <<EOF
[[TCP Link]]
[[TCP Transport]]
type = TCPClientInterface
enabled = yes
target_host = $RNS_TCP_HOST
target_port = $RNS_TCP_PORT
target_host = ${RNS_TCP_HOST:-reticulum.derickphan.com}
target_port = ${RNS_TCP_PORT:-4242}
EOF
fi
fi
export RNS_CONFIG_DIR="$CONFIG_DIR"