-
Notifications
You must be signed in to change notification settings - Fork 2
/
satsbox.example.toml
91 lines (76 loc) · 2.71 KB
/
satsbox.example.toml
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
81
82
83
84
85
86
87
88
89
90
91
# satsbox configuration
# All configurations can also be set via environment variables
# secondary attributes can be separated by '__', arrays can be separated by space
# Example:
#
# SATSBOX_DB_URL=sqlite://data/satsbox.sqlite?mode=rwc
# SATSBOX_LND__URL=https://127.0.0.1:8009
# SATSBOX_NWC__RELAYS="ws://127.0.0.1:8777 ws://127.0.0.1:8880"
#
# database url @see https://www.sea-ql.org/SeaORM/docs/install-and-config/connection/
# sqlite://satsbox.sqlite?mode=rwc
# postgres://test:[email protected]:8432/satsbox
# mysql://test:[email protected]:8306/satsbox
db_url = "sqlite://satsbox.sqlite?mode=rwc"
# lightning backend. cln or lnd
lightning = "cln"
# lightning node address
lightning_node = "127.0.0.1:9735"
# lnd grpc connect
[lnd]
url = "https://127.0.0.1:8009"
cert = "./contrib/data/lnd/tls.cert"
macaroon = "./contrib/data/lnd/data/chain/bitcoin/regtest/admin.macaroon"
# cln grpc connect
[cln]
url = "https://127.0.0.1:8008"
ca = "./contrib/data/cln/regtest/ca.pem"
client = "./contrib/data/cln/regtest/client.pem"
client_key = "./contrib/data/cln/regtest/client-key.pem"
# config fee
[fee]
# lightning: The fee limit expressed as a percentage of the payment amount. (0-100)
pay_limit_pct = 2
# lightning: small amounts (<=1k sat) payment max fee.
small_pay_limit_pct = 10
# internal pyament fee
internal_pct = 0
# service fee per payment
service_pct = 0
# config auth
[auth]
# only whitelist pubkey can use service.
# whitelist = ["npub1fuvh5hz9tvyesqnrsrjlfy45j9dwj0zrzuzs4jy53kff850ge5sq6te9w6"]
# jwt auth secret, must change
secret = "test"
# config lnurl
[lnurl]
# The nostr privkey for send zap receipts, if not set, the zaps feature will be disabled.
privkey = "c267c52ca60b4d6553891ad201eebda3af21addcedb62bf624c942413a0ced46"
# Additional relays for send zap receipts
relays = ["ws://127.0.0.1:8777", "ws://127.0.0.1:8880"]
# config nwc
[nwc]
# The nostr privkey for interacting with users, if not set, the nwc feature will be disabled.
privkey = "c267c52ca60b4d6553891ad201eebda3af21addcedb62bf624c942413a0ced46"
# The nostr relays for interacting with users
relays = ["ws://127.0.0.1:8777", "ws://127.0.0.1:8880"]
# config network
[network]
# Interface to listen on. Use 0.0.0.0 to listen on all interfaces
host = "127.0.0.1"
# Listen port
port = 8080
# config thread
[thread]
# number of http server threads
# default 0 will use the num of cpus
# http = 0
# config donation
[donation]
# account privkey for receive donation, if not set, the donation feature will be disabled.
privkey = "c267c52ca60b4d6553891ad201eebda3af21addcedb62bf624c942413a0ced46"
# recommended donation amounts
amounts = [1000000, 10000000, 100000000]
# The short lightning address is only available to users who have made a donation.
restrict_username = true