-
Notifications
You must be signed in to change notification settings - Fork 18
/
config_spec.toml
106 lines (89 loc) · 2.73 KB
/
config_spec.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[general]
conf_file_param = "conf"
conf_dir_param = "conf_dir"
doc = """
Bitcoin RPC proxy enables you to define finer-grained permissions for your bitcoind. You can for example only allow certain calls to be made by specific users (by sharing specific password). The calls are defined using whitelist and an example of configuration file is provided with the source code."""
#[debconf]
#package_name = "bitcoin-rpc-proxy-mainnet"
[[param]]
name = "bitcoind_user"
type = "String"
doc = "The user name used when connecting to the real bitcoind."
[[param]]
name = "bitcoind_password"
type = "String"
argument = false
doc = "The password used when connecting to the real bitcoind."
[[param]]
name = "cookie_file"
type = "std::path::PathBuf"
argument = false
doc = "The file in which bitcoind stores authentication cookie. Can be used instead of user:password."
[[param]]
name = "bind_address"
type = "::std::net::IpAddr"
optional = true
doc = "The address used for listening."
#debconf_priority = "low"
#debconf_default = "127.0.0.1"
[[param]]
name = "bind_port"
type = "u16"
optional = true
doc = "The port used for listening."
#debconf_priority = "low"
#debconf_default = "8331"
[[param]]
name = "bind_systemd_socket_name"
type = "String"
optional = true
doc = "The systemd socket name used for listening - conflicts with bind_address and bind_port"
[[param]]
name = "bitcoind_address"
type = "::std::net::IpAddr"
default = "[127, 0, 0, 1].into()"
doc = "The address of the real bitcoind."
[[param]]
name = "bitcoind_port"
type = "u16"
default = "8332"
doc = "The port of the real bitcoind."
[[param]]
name = "user"
type = "std::collections::HashMap<String, btc_rpc_proxy::users::input::User>"
merge_fn = "std::iter::Extend::extend"
default = "Default::default()"
argument = false
doc = "Map of user names to user configs. Each user must specify `password` field and an array of allowed calls named `allowed_calls`"
[[param]]
name = "peer_timeout"
type = "u64"
default = "30"
doc = "How many seconds to wait for a response from a peer before failing"
[[param]]
name = "max_peer_age"
type = "u64"
default = "300"
doc = "How many seconds to wait before refreshing the peer list"
[[param]]
name = "max_peer_concurrency"
type = "usize"
doc = "How many peers to reach out to concurrently for block data"
[[param]]
name = "tor_proxy"
type = "std::net::SocketAddr"
optional = true
doc = "The IP address and port of the Tor SOCKSv5 proxy to use for peer connections"
[[param]]
name = "tor_only"
type = "bool"
default = "false"
doc = "Use tor for non-.onion peer connections"
[[switch]]
name = "default_fetch_blocks"
doc = "Fetch blocks from peers for all users that do NOT specify fetch_blocks = false"
[[switch]]
name = "verbose"
abbr = "v"
doc = "Increase logging verbosity"
count = true