generated from mrz1836/go-template
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathconfig.example.yaml
130 lines (129 loc) · 4.34 KB
/
config.example.yaml
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
auth:
# xpub used for admin api authentication
admin_key: xpub661MyMwAqRbcFgfmdkPgE2m5UjHXu9dj124DbaGLSjaqVESTWfCD4VuNmEbVPkbYLCkykwVZvmA8Pbf8884TQr1FgdG2nPoHR8aB36YdDQh
# require checking signatures for all requests which was registered with RequireAuthentication method
require_signing: false
# authentication scheme - xpub => using xPubs as tokens, currently the only option
scheme: xpub
cache:
cluster:
# cluster coordinator - redis/memory
coordinator: memory
# prefix for channel names
prefix: spv_wallet_cluster_
redis: null
# cache engine - freecache/redis
engine: freecache
redis:
dependency_mode: true
max_active_connections: 0
max_connection_lifetime: 1m0s
max_idle_connections: 10
max_idle_timeout: 10s
url: redis://localhost:6379
use_tls: false
db:
datastore:
# enable datastore debug mode
debug: false
# datastore engine - sqlite/postgresql
engine: sqlite
# prefix for all tables
table_prefix: xapi
sql:
debug: false
driver: postgresql
host: localhost
max_connection_idle_time: 0s
max_connection_time: 0s
max_idle_connections: 0
max_open_connections: 0
name: xapi
password: ""
port: "5432"
replica: false
skip_initialize_with_version: true
table_prefix: ""
time_zone: UTC
tx_timeout: 10s
user: postgres
sqlite:
database_path: ./spv-wallet.db
debug: false
max_connection_idle_time: 0s
max_connection_time: 0s
max_idle_connections: 0
max_open_connections: 0
shared: true
table_prefix: ""
# enable endpoints that provides profiling information
debug_profiling: true
# enable (ITC) incoming transaction checking
disable_itc: true
# url to import block headers
import_block_headers: ""
arc:
url: https://arc.taal.com
token: mainnet_06770f425eb00298839a24a49cbdc02c
# deployment id used annotating api calls in XDeployment-ID header - this value will be randomly generated if not set
_deployment_id: spv-wallet-deployment-id
callback:
enabled: false
host: https://example.com
# token to authenticate callback calls - default callback token will be generated from the Admin Key
_token: 44a82509
# custom fee unit used for calculating fees (if not set, a unit from ARC policy will be used)
_custom_fee_unit:
satoshis: 1
bytes: 1000
notifications:
enabled: false
block_headers_service:
auth_token: mQZQ6WmxURxWz5ch
# URL used to communicate with Block Headers Service (BHS)
url: http://localhost:8080
paymail:
beef:
block_headers_service_auth_token: mQZQ6WmxURxWz5ch
# url to Block Headers Service, used for merkle root verification
block_headers_service_url: http://localhost:8080/api/v1/chain/merkleroot/verify
use_beef: false
# set is as a default sender paymail if account does not have one
default_from_paymail: [email protected]
# default note added into transactions - Deprecated
default_note: SPV Wallet Address Resolution
# enable paymail domain validation, paymail domain must be in domains list to be valid and that the transaction can be processed
domain_validation_enabled: false
# list of domains used for paymail domain validation
domains:
- localhost
enabled: true
# validates sender signature during receiving transactions
sender_validation_enabled: false
# show logs about incoming requests
request_logging: true
server_config:
# maximum amount of time to wait for the next request when keep-alives are enabled. If IdleTimeout is zero, the value of ReadTimeout is used. If both are zero, there is no timeout
idle_timeout: 1m0s
# port of the http server
port: 3003
# maximum duration for reading the entire request, including the body. A zero or negative value means there will be no timeout
read_timeout: 15s
# maximum duration before timing out writes of the response. A zero or negative value means there will be no timeout
write_timeout: 15s
task_manager:
# task manager factory - memory, redis
factory: memory
# Prometheus metrics configuration
metrics:
enabled: false
logging:
# log level: trace, debug, info, warn, error
level: info
# log format: json, console
format: console
experimental_features:
# pike_contacts_enabled is a flag for enabling Pike contacts invite capability.
pike_contacts_enabled: false
# pike_payment_enabled is a flag for enabling Pike payment capability.
pike_payment_enabled: false