added default transport node

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.
This commit is contained in:
lichenblankie 2026-03-26 20:13:35 -07:00
parent 14aafad337
commit d4d869312e
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"