This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaperture.yaml
196 lines (162 loc) · 5.38 KB
/
aperture.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# The address which the proxy can be reached at.
listenaddr: "localhost:8081"
# The root path of static content to serve upon receiving a request the proxy
# cannot handle.
staticroot: "./static"
# Should the static file server be enabled that serves files from the directory
# specified in `staticroot`?
servestatic: false
# The log level that should be used for the proxy.
#
# Valid options include: trace, debug, info, warn, error, critical, off.
debuglevel: "debug"
# Whether the proxy should create a valid certificate through Let's Encrypt for
# the fully qualifying domain name.
autocert: false
servername: aperture.example.com
# Settings for the lnd node used to generate payment requests. All of these
# options are required.
authenticator:
# The host:port which lnd's RPC can be reached at.
lndhost: "localhost:10009"
# The path to lnd's TLS certificate.
tlspath: "/home/user/.lnd/tls.cert"
# The path to lnd's macaroon directory.
macdir: "/home/user/.lnd/data/chain/bitcoin/regtest"
# The chain network the lnd is active on.
network: "regtest"
# Settings for the etcd instance which the proxy will use to reliably store and
# retrieve token information.
etcd:
# The client host:port which the etcd instance can be reached at.
host: "localhost:2379"
# If authentication is enabled, the user and password required to access the
# etcd instance.
user: "user"
password: "password"
# List of services that should be reachable behind the proxy. Requests will be
# matched to the services in order, picking the first that satisfies hostregexp
# and (if set) pathregexp. So order is important!
#
# Use single quotes for regular expressions with special characters in them to
# avoid YAML parsing errors!
services:
# The identifying name of the service. This will also be used to identify
# which capabilities caveat (if any) corresponds to the service.
- name: "infrabot-health"
# The regular expression used to match the service host.
#hostregexp: '^$'
# The regular expression used to match the path of the URL.
pathregexp: '^*/health$'
# The host:port which the service can be reached at.
address: "localhost:3637"
# The HTTP protocol that should be used to connect to the service. Valid
# options include: http, https.
protocol: http
# If required, a path to the service's TLS certificate to successfully
# establish a secure connection.
#tlscertpath: "/home/nigellchristian/.lnd/tls.cert"
# A comma-delimited list of capabilities that will be granted for tokens of
# the service at the base tier.
capabilities: "run"
# The set of constraints that are applied to tokens of the service at the
# base tier.
constraints:
"valid_until": "2021-12-12"
# The LSAT value in satoshis for the service.
price: 10
# d-tier quote config
- name: "infrabot-quote-d"
address: "localhost:3637"
pathregexp: '^*/quote/d$'
protocol: http
constraints:
"valid_until": "2022-12-12"
price: 10
# c-tier quote config
- name: "infrabot-quote-c"
address: "localhost:3637"
pathregexp: '^*/quote/c$'
protocol: http
constraints:
"valid_until": "2022-12-12"
price: 10
# b-tier quote config
- name: "infrabot-quote-b"
address: "localhost:3637"
pathregexp: '^*/quote/b$'
protocol: http
constraints:
"valid_until": "2022-12-12"
price: 10
# a-tier quote config
- name: "infrabot-quote-a"
address: "localhost:3637"
pathregexp: '^*/quote/a$'
protocol: http
constraints:
"valid_until": "2022-12-12"
price: 10
# s-tier quote config
- name: "infrabot-quote-s"
address: "localhost:3637"
pathregexp: '^*/quote/s$'
protocol: http
constraints:
"valid_until": "2022-12-12"
price: 10
# D-tier config
- name: "infrabot-d"
address: "localhost:3637"
pathregexp: '^*/noops/d$'
protocol: http
constraints:
"valid_until": "2022-12-12"
price: 10
# C-tier config
- name: "infrabot-c"
address: "localhost:3637"
pathregexp: '^*/noops/c$'
protocol: http
constraints:
"valid_until": "2022-12-12"
price: 240
# B-tier config
- name: "infrabot-b"
address: "localhost:3637"
pathregexp: '^*/noops/b$'
protocol: http
constraints:
"valid_until": "2023-12-12"
price: 1680
# A-tier config
- name: "infrabot-a"
address: "localhost:3637"
pathregexp: '^*/noops/a$'
protocol: http
constraints:
"valid_until": "2024-12-12"
price: 6720
# S-tier config
- name: "infrabot-s"
address: "localhost:3637"
pathregexp: '^*/noops/s$'
protocol: http
constraints:
"valid_until": "2025-12-12"
price: 87360
# Settings for a Tor instance to allow requests over Tor as onion services.
# Configuring Tor is optional.
tor:
# The host:port which Tor's control can be reached at.
control: "localhost:9051"
# The internal port we should listen on for client requests over Tor. Note
# that this port should not be exposed to the outside world, it is only
# intended to be reached by clients through the onion service.
listenport: 8082
# The port through which the onion services to be created can be reached at.
virtualport: 8082
# Whether a v2 onion service should be created to handle requests.
v2: false
# Whether a v3 onion service should be created to handle requests.
v3: false