mirror of
https://github.com/Such-Software/xmrcheckout.git
synced 2026-12-01 12:14:11 +01:00
fix(daemon): require an operator daemon and refuse plain http to a public node
Every shipped default pointed payment detection at a third-party daemon over plain http. Whoever ran it, or anyone on the path, could fake transfers or confirmations. MONERO_DAEMON_URL is now required with no default. The API and reconciler refuse to start with a plain-http daemon on a public host; private, loopback and local names stay allowed, and remote daemons must use https. The example and README point at an operator-run node.
This commit is contained in:
@@ -123,8 +123,12 @@ cp .env.example .env
|
||||
- `MONERO_DAEMON_URL` (choose one of the options below)
|
||||
|
||||
3. Choose a Monero daemon source:
|
||||
- **Use a third-party daemon (default):**
|
||||
- Leave `MONERO_DAEMON_URL` as-is (the default points at a public Monero daemon).
|
||||
`MONERO_DAEMON_URL` is required and has no default. Payment detection trusts the daemon, so it must
|
||||
be one you operate. A plain-http daemon on a public host is refused at startup; a remote daemon must
|
||||
use https.
|
||||
- **Use your own node elsewhere:**
|
||||
- Set `MONERO_DAEMON_URL` to your node on a private network (for example `http://10.0.0.5:18081`),
|
||||
or to an https endpoint you control.
|
||||
- **Run your own daemon via Docker Compose:**
|
||||
- Set `MONERO_DAEMON_URL=http://monerod:18081`
|
||||
- Start the stack with the `local-daemon` profile (see step 5)
|
||||
|
||||
Reference in New Issue
Block a user