mirror of
https://github.com/Such-Software/grin-lws.git
synced 2026-10-17 15:41:43 +02:00
- .gitignore no longer excludes Cargo.lock; track it (standard for a service crate) - drop the unused GRINLWS_SCAN_BATCH_BLOCKS config field (the scanner pages by a fixed PAGE_MAX, never read this) and its .env.example line - remove the unused Error::NotImplemented variant and its match arm - replace the crate-level #![allow(dead_code)] with a targeted allow on mark_unspent (the single-commit un-spend counterpart to mark_spent; the reorg path un-spends in bulk via rollback_to) - doc drift: ready() returns 502 when the node is down (not 503); main.rs status reflects the functional, in-production service
32 lines
1.2 KiB
Bash
32 lines
1.2 KiB
Bash
# grin-lws configuration. Copy to .env and fill in.
|
|
#
|
|
# PUBLIC-CLEAN: every value below is generic. There are no hostnames, operator
|
|
# IPs, or secrets baked into this repo — point it at your own grin node + DB.
|
|
|
|
# HTTP bind address. Bind to loopback / a private network: the user API is not
|
|
# authenticated at this layer (the proxying backend does user auth).
|
|
GRINLWS_BIND=127.0.0.1:3480
|
|
|
|
# Database. Postgres for scale, or a SQLite file for a single operator.
|
|
# DATABASE_URL=postgres://grinlws:grinlws@127.0.0.1:5432/grinlws
|
|
DATABASE_URL=sqlite://grin-lws.db
|
|
|
|
# grin node Foreign API v2 (JSON-RPC): tip, block reads, and broadcast.
|
|
GRIN_NODE_URL=http://127.0.0.1:3413/v2/foreign
|
|
# Optional basic-auth secret for the node Foreign API (empty = none).
|
|
GRIN_NODE_API_SECRET=
|
|
|
|
# Background scanner tuning: how often it polls for new blocks.
|
|
GRINLWS_SCAN_POLL_SECS=15
|
|
|
|
# Restore-depth bound: how many days behind the tip a newly registered account
|
|
# may start scanning from. 0 = unbounded.
|
|
GRINLWS_RESTORE_MAX_DEPTH_DAYS=0
|
|
|
|
# Optional shared bearer that gates the admin API (/list_accounts, /rescan).
|
|
# Empty = admin API disabled.
|
|
GRINLWS_ADMIN_KEY=
|
|
|
|
# Log filter.
|
|
RUST_LOG=grin_lws=info
|