Bind both Docker services to 0.0.0.0 by default
This commit is contained in:
+5
-4
@@ -10,8 +10,8 @@ in the Docker volume, not your host OpenCode account. Re-run to update while
|
||||
preserving `.env`, tokens, histories and volumes. Use `--relogin` to connect another
|
||||
provider. No fixed OpenCode Go login is required. Health/publishing checks do not
|
||||
prove model inference or phone reception.
|
||||
LAN IP, phone-facing ntfy URL and listen IP are detected/configured automatically;
|
||||
there are no networking questions. Advanced URL/bind/timezone flags remain optional.
|
||||
The phone-facing ntfy URL uses the detected LAN IP; both services bind `0.0.0.0` by default.
|
||||
There are no networking questions. Advanced URL/bind/timezone flags remain optional.
|
||||
|
||||
The steps below are for manual setup or a local Pipelines server with Docker ntfy.
|
||||
|
||||
@@ -69,13 +69,14 @@ your actual IANA timezone). Rerun/edit settings if you move/change timezones.
|
||||
The helper creates an empty, protected token file for bootstrap; no notifications
|
||||
are sent until it is filled. `.env`, `secrets/`, and `data/` are git-ignored and
|
||||
excluded from image builds. Default pipeline port is **8081**, bound to host
|
||||
loopback, avoiding the existing native server on 8080. Android does not need
|
||||
`0.0.0.0`, avoiding the existing native server on 8080. Android does not need
|
||||
access to the unauthenticated pipeline API.
|
||||
|
||||
Use HTTP only on a trusted LAN or encrypted VPN. For public access, use HTTPS
|
||||
with a reverse proxy/VPN; configure the external URL in `NTFY_BASE_URL`. The
|
||||
container's attachment URLs use that external URL, not the internal service name.
|
||||
`NTFY_BIND_ADDRESS=0.0.0.0` explicitly exposes port 8090; firewall it appropriately.
|
||||
Both host port mappings default to `0.0.0.0`; firewall them appropriately. The
|
||||
Pipelines API has no authentication and must not be exposed to untrusted networks.
|
||||
|
||||
## 2. Bootstrap ntfy users and token
|
||||
|
||||
|
||||
+8
-4
@@ -21,8 +21,9 @@ Re-running installation updates the binaries and bundled OpenCode skill without
|
||||
changing databases, login, or OpenCode configuration files.
|
||||
|
||||
Docker mode detects the computer's LAN IPv4 address and timezone automatically,
|
||||
configures `http://LAN_IP:8090`, and binds ntfy to that LAN interface without asking
|
||||
for networking settings (timezone falls back to UTC). It preserves an existing `.env`, bootstraps
|
||||
configures `http://LAN_IP:8090`, and binds both Docker services to `0.0.0.0` without asking
|
||||
for networking settings (timezone falls back to UTC). On reinstall it updates only
|
||||
the bind settings to `0.0.0.0` and retains existing URLs/timezone/ports/credentials. It bootstraps
|
||||
the publishing/phone accounts and publishing token, builds the server, installs
|
||||
the skill inside the container, and opens **container OpenCode provider login**
|
||||
on first setup. Choose any supported provider; signup is handled by that provider.
|
||||
@@ -36,10 +37,13 @@ Phone reception/model inference are not verified by installation.
|
||||
For fresh configuration you can supply `--ntfy-url https://ntfy.example.com
|
||||
--bind-address 127.0.0.1 --timezone Europe/London --port 8081` directly to `./install.sh`.
|
||||
The defaults are ready for direct phone access on your trusted LAN. Only use
|
||||
plain HTTP on a trusted network. Existing `.env` settings are never silently
|
||||
replaced. Docker is also the default without a terminal; setup fails rather than
|
||||
plain HTTP on a trusted network. Other existing `.env` settings are not replaced.
|
||||
Docker is also the default without a terminal; setup fails rather than
|
||||
silently falling back to native binaries if the LAN address cannot be detected.
|
||||
Use an interactive terminal for first Docker/provider setup.
|
||||
The Docker Pipelines API is unauthenticated: keep its port on a trusted network
|
||||
and do not forward it to the Internet. For a manual loopback-only deployment,
|
||||
set `PIPELINES_BIND_ADDRESS=127.0.0.1` after installation and use Compose directly.
|
||||
Ctrl+C cancels cleanly without deleting configuration, credentials or volumes.
|
||||
Install native mode as well if you want host CLI/TUI binaries; Docker mode installs
|
||||
the server and CLI in its image. See [Docker setup](docker.md).
|
||||
|
||||
@@ -41,6 +41,9 @@ LAN detection and `.env` generation were executed without networking input.
|
||||
The isolated Docker ntfy endpoint was also reached through the detected LAN IP:
|
||||
health succeeded, anonymous publishing was denied, and authenticated publishing
|
||||
succeeded. These host-side checks do not prove reception on another device.
|
||||
Docker bindings now default to `0.0.0.0` for both services. Reinstall tests check
|
||||
normalization of old bind settings without replacing URLs/timezone/ports/tokens;
|
||||
`docker compose config --format json` confirmed both host bindings are `0.0.0.0`.
|
||||
|
||||
Consequential-action regressions check run/retry/cancellation and CLI publication/
|
||||
draft deletion confirmation, default-No behavior, JSON stdout cleanliness, and
|
||||
|
||||
Reference in New Issue
Block a user