<!-- XE-0330 · docs: (Embedded UI ) example uses - -api-bind 0.0.0.0, contradicting the page's own loopback/reverse-proxy guidance · testnet -->
*Markdown view of <https://bounty.xe.network/XE-0330>. The page is the record; this is the same page for reading.*

XE-0330 · Bounty

# docs: (Embedded UI ) example uses --api-bind 0.0.0.0, contradicting the page's own loopback/reverse-proxy guidance

Triaging
[xe#250](https://github.com/xeprotocol/xe/issues/250)
filed 2026-11-03 14:45 UTC
by oxatik

Verdict
:   published when the fix ships

Tier
:   published when the fix ships

Claimed
:   —

Area
:   SDK / docs / web

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-10 00:11 UTC

Told
:   2026-11-08 20:19 UTC

### Patches

None linked.

### History

- [43838](https://bounty.xe.network/log/43838) 2026-11-08 20:19 UTC github.labels
- [43816](https://bounty.xe.network/log/43816) 2026-11-08 20:19 UTC reply.mirrored
- [43729](https://bounty.xe.network/log/43729) 2026-11-08 20:18 UTC proposal.adopted
- [43728](https://bounty.xe.network/log/43728) 2026-11-08 20:18 UTC reply.sent
- [42886](https://bounty.xe.network/log/42886) 2026-11-08 20:18 UTC proposal.adopted
- [42885](https://bounty.xe.network/log/42885) 2026-11-08 20:18 UTC ticket.facts area
- [42884](https://bounty.xe.network/log/42884) 2026-11-08 20:18 UTC proposal.adopted
- [42883](https://bounty.xe.network/log/42883) 2026-11-08 20:18 UTC ticket.facts
- [42882](https://bounty.xe.network/log/42882) 2026-11-08 20:18 UTC proposal.adopted
- [42881](https://bounty.xe.network/log/42881) 2026-11-08 20:18 UTC ticket.facts
- [42880](https://bounty.xe.network/log/42880) 2026-11-08 20:18 UTC proposal.adopted
- [42879](https://bounty.xe.network/log/42879) 2026-11-08 20:18 UTC ticket.facts

[Full history](https://bounty.xe.network/log?ref=XE-0330) · [JSON](https://bounty.xe.network/v1/tickets/XE-0330) · [markdown](https://bounty.xe.network/XE-0330.md)

### Report

The "Embedded UI (Recommended)" command on https://test.network/docs/deployment
passes --api-bind 0.0.0.0 which exposes the HTTP API on all interfaces.
The same page says otherwise:

- Listeners table: the HTTP API defaults to `127.0.0.1:8080`.
- The text under the table says only the libp2p port should be reachable from
  the internet, and that exposing anything else should go through a reverse proxy.
- The "Public Hosts (Caddy \+ pm2)" diagram keeps the API on `127.0.0.1:8080`
  behind Caddy.

A reader who copy-pastes the "recommended" command ends up with the API
reachable directly, without TLS or a reverse proxy.

**Page:** https://test.network/docs/deployment (footer build: `e107ed7`)
**Section:** Embedded UI (Recommended)

## Command as published

```
xe node --ui \
  --genesis-dir /etc/xe/genesis \
  --dial /ip4/45.77.226.208/tcp/9000/p2p/12D3KooW... \
  --api-bind 0.0.0.0 \
  --ssh-port 2222
```

## Why it matters

- Binding the API publicly is the default-looking path for anyone following
  the guide, which is the opposite of what the page recommends elsewhere.
- Related: #172 shows how rate-limiter behaviour depends on how the API is
  bound and proxied, so the bind choice matters beyond style.
- I have not verified which API endpoints are unauthenticated.

## Related inconsistency

`--ssh-port 2222` is in the same example, but the SSH gateway is for provider
mode and the example deliberately omits `--provide`. It opens a listener the
reader does not need.

## Suggested fix

- Remove `--api-bind 0.0.0.0` from the example (the default is loopback).
  If remote access is needed, document the reverse-proxy setup instead.
- Remove `--ssh-port 2222` from the non-provider example, or note it is
  provider-only.

### Thread

**Joseph Denne**team2026-11-08 20:19 UTCgithub

Thanks for flagging the inconsistency in the deployment example. We agree the recommended command should match the page's own guidance and are correcting it. We will update this ticket when the page is changed.
