-
Notifications
You must be signed in to change notification settings - Fork 1
/
pvapi.toml.tmpl
55 lines (45 loc) · 1.24 KB
/
pvapi.toml.tmpl
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
# Encryption key
secret_key = "TODO"
[auth0]
secret = "TODO"
client_id = "TODO"
domain = "TODO"
[cache]
redis = false
redis_url = "" # redis://<user>:<pass>@localhost:6379/<db>
metric_bytes = 536870912 # number of bytes to cache in local memory
lru_bytes = 52428800 # number of bytes to cache in general lru
ttl = 86400 # number of seconds to store in lru cache
[database]
url = "TODO"
# e.g. url = "postgres://pvapi@localhost/pennyvault"
max_temp_portfolio_age_secs = 86400
min_request_duration = "126d" # minimum duration for data requests from database
[debug]
dump_csv = false
[email]
name = "Penny Vault"
address = "[email protected]"
date_format = "02 Jan 2006"
[log]
level = "warning"
report_caller = true
output = "stdout"
pretty = true
[nats]
server = "tls://connect.ngs.global"
credentials = "<path to pvapi.creds>"
requests_subject = "portfolios.request"
requests_consumer = "pvapi_requests_consumer"
status_subject = "portfolios.status"
# Configure open telemetry end-points. Headers required by the OLTP server
# (i.e. authentication) can be configured as a sub-table called otlp.headers
[otlp]
endpoint = "server.otlp.com"
[otlp.headers]
"x-auth" = "example-auth"
[sendgrid]
apikey = "TODO"
template = "<email template id>"
[server]
port = 3000