-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
80 lines (48 loc) · 3.44 KB
/
.env.example
File metadata and controls
80 lines (48 loc) · 3.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# ── NUTbits ─────────────────────────────────────────────────
# cp .env.example .env then fill in the two required values.
# ── REQUIRED ────────────────────────────────────────────────
NUTBITS_MINT_URL=https://mint.minibits.cash/Bitcoin
NUTBITS_STATE_PASSPHRASE=
# That's it. NUTbits runs with just these two.
# Everything below is optional.
# ── Relays ──────────────────────────────────────────────────
# NUTBITS_RELAYS=wss://relay.getalby.com/v1,wss://relay.8333.space
# ── Storage ─────────────────────────────────────────────────
# file (default) | sqlite (recommended) | mysql
# NUTBITS_STATE_BACKEND=sqlite
# NUTBITS_SQLITE_PATH=./nutbits_state.db
# NUTBITS_MYSQL_URL=mysql://user:pass@localhost:3306/nutbits
# ── API ─────────────────────────────────────────────────────
# The management API powers the CLI, GUI, and external tools.
# NUTBITS_API_ENABLED=true
# NUTBITS_API_PORT=3338
# NUTBITS_API_TOKEN= # set explicitly for VPS/browser use
# NUTBITS_API_SOCKET= # default: ~/.nutbits/nutbits.sock
# NUTBITS_API_HOST=127.0.0.1
# ── GUI ─────────────────────────────────────────────────────
# Web GUI served by `npm run gui` or the Linux systemd service.
# NUTBITS_GUI_HOST=127.0.0.1
# NUTBITS_GUI_PORT=8080
# ── Limits ──────────────────────────────────────────────────
# NUTBITS_MAX_PAYMENT_SATS=0 # 0 = no limit
# NUTBITS_DAILY_LIMIT_SATS=0 # 0 = no limit
# ── Service Fee ─────────────────────────────────────────────
# Cut on outgoing payments. Receiving is always free.
# NUTBITS_SERVICE_FEE_PPM=0 # parts per million (10000 = 1%)
# NUTBITS_SERVICE_FEE_BASE=0 # flat sats per payment
# ── Multi-Mint Failover ────────────────────────────────────
# NUTBITS_MINT_URLS=https://mint1.example.com,https://mint2.example.com
# NUTBITS_HEALTH_CHECK_INTERVAL_MS=60000
# NUTBITS_FAILOVER_COOLDOWN_MS=10000
# ── Seed ────────────────────────────────────────────────────
# Auto-generated on first run and saved here automatically.
# BACK THIS UP — it recovers your funds if the database is lost.
# NUTBITS_SEED=
# ── Advanced ────────────────────────────────────────────────
# NUTBITS_STATE_FILE=./nutbits_state.enc
# NUTBITS_LOG_LEVEL=info
# NUTBITS_FEE_RESERVE_PCT=1
# NUTBITS_INVOICE_CHECK_MAX_RETRIES=60
# NUTBITS_INVOICE_CHECK_INTERVAL_SECS=20
# NUTBITS_FETCH_TIMEOUT_MS=15000
# NUTBITS_API_HTTP=