docs(openwrt): fix TollGate step — install is separate from configure

Step 4 described a single "Provision TollGate" action that prompts for
price/step/mint upfront. The real UI (OpenWrtGateway.vue) doesn't work
that way: "Install TollGate" is a one-click action with no config form
that installs with defaults, and price/step/mint/enabled are only
editable afterward via a separate "Edit" panel. Caught while walking
through a live install.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0176RpCxFNS9ZaSJjL72W9Z5
This commit is contained in:
2026-09-05 14:32:39 +00:00
co-authored by Claude Sonnet 5
parent 0646bc4e85
commit a4ae375617
+31 -18
View File
@@ -131,27 +131,40 @@ network.
The dashboard's WAN panel shows the resulting association state, assigned The dashboard's WAN panel shows the resulting association state, assigned
IP, and whether the router currently has internet reachability. IP, and whether the router currently has internet reachability.
## Step 4: (Optional) Provision TollGate ## Step 4: (Optional) Install TollGate
Once connected (and with a local Cashu mint app running), the dashboard Once connected (and with a local Cashu mint app running), the dashboard
shows a **TollGate: not installed** state with a **Provision** action. shows a **TollGate: not installed** panel with a single **Install TollGate**
button — there's no config form at this stage, it installs with defaults.
The panel itself warns: *"Router needs internet access to install TollGate
— configure WAN above first"* (Step 3), since the router has to reach the
internet to download the package.
1. Click **Provision TollGate**. 1. Click **Install TollGate**. The button relabels to *"Installing… this
2. Set: may take a few minutes"* while it works.
- **Price** (sats) 2. Under the hood this installs `tollgate-module-basic-go` on the router
- **Step size** (minutes — billed in `step_size_ms` under the hood, (via `opkg` on OpenWrt ≤24.x, or a manual `.ipk` extract on 25.x images
default 1 minute) where `opkg` isn't available), writes `/etc/tollgate/config.json`, and
- **Minimum steps** a customer must buy at once creates the `archipelago` SSID — all with default pricing (10 sats per
- **Mint URL** — leave as the auto-filled `http://<node-ip>:3338` unless 1-minute step, minimum 1 step, `mint_url` auto-filled to
you're pointing at an external/different mint `http://<node-ip>:3338`, enabled).
3. Confirm. This can take a few minutes: the node downloads/installs 3. On success you'll see *"TollGate provisioned successfully"* and the
`tollgate-module-basic-go` on the router (via `opkg` on OpenWrt ≤24.x, or panel switches to the installed view (Enabled/Disabled badge, current
a manual `.ipk` extract for 25.x images where `opkg` isn't available), price/step/mint).
writes `/etc/tollgate/config.json`, and creates the `archipelago` SSID.
4. Once provisioned, the same panel lets you **edit** price/step/mint and ### Configuring price, step size, or mint (after install)
toggle TollGate enabled/disabled without reinstalling — changes are
pushed to `/etc/tollgate/config.json` and the daemon is restarted to The installed-state panel has an **Edit** button — this is the only place
pick them up (it does not hot-reload). you set price/step/mint, and it only appears once TollGate is already
installed:
1. Click **Edit**.
2. Set **Price** (sats), **Step size** (minutes — billed as `step_size_ms`
under the hood), **Minimum steps** a customer must buy at once, **Mint
URL** (leave as the auto-filled node URL unless pointing at an external
mint), and the **Enable TollGate** toggle.
3. Click **Save**. Changes are pushed to `/etc/tollgate/config.json` and the
daemon is restarted to pick them up — it does not hot-reload.
Anyone who joins the `archipelago` SSID sees TollGate's captive portal and Anyone who joins the `archipelago` SSID sees TollGate's captive portal and
pays sats (via the configured Cashu mint) for timed access. pays sats (via the configured Cashu mint) for timed access.