Skip to content

Commit d08ed14

Browse files
authored
feat: cardano-node-api config.yaml example
Example config yaml for cardano-node-api. Please look to add description to Query Timeout section under node, and descriptions for Utxorpc and tls sections.
1 parent 0a2463d commit d08ed14

File tree

1 file changed

+123
-0
lines changed

1 file changed

+123
-0
lines changed

config.yaml.example

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
---
2+
# Example config file for cardano-node-api
3+
# The values shown below correspond to the in-code defaults
4+
5+
logging:
6+
# Logging level
7+
#
8+
# This can also be set via the LOGGING_LEVEL environment variable
9+
level: info
10+
11+
# Health checks
12+
#
13+
# This can also be set via the LOGGING_HEALTHCHECKS environment variable
14+
healthchecks: false
15+
16+
api:
17+
# Listen address for the API
18+
#
19+
# This can also be set via the API_LISTEN_ADDRESS environment variable
20+
address:
21+
22+
# Listen port for the API
23+
#
24+
# This can also be set via the API_LISTEN_PORT environment variable
25+
port: 8080
26+
27+
metrics:
28+
# Listen address for the metrics endpoint
29+
#
30+
# This can also be set via the METRICS_LISTEN_ADDRESS environment variable
31+
address:
32+
33+
# Listen port for the metrics endpoint
34+
#
35+
# This can also be set via the METRICS_LISTEN_PORT environment variable
36+
port: 8081
37+
38+
# The debug endpoint provides access to pprof for debugging purposes. This is
39+
# disabled by default, but it can be enabled by setting the port to a non-zero
40+
# value
41+
debug:
42+
# Listen address for the debug endpoint
43+
#
44+
# This can also be set via the DEBUG_ADDRESS environment variable
45+
address: localhost
46+
47+
# Listen port for the debug endpoint
48+
#
49+
# This can also be set via the DEBUG_PORT environment variable
50+
port: 0
51+
52+
node:
53+
# Named Cardano network for cardano-node
54+
#
55+
# This is a short-cut to select the NetworkMagic and can be used to
56+
# select mainnet, preprod, or preview networks.
57+
#
58+
# This can also be set via the CARDANO_NETWORK environment variable
59+
network: mainnet
60+
61+
# NetworkMagic for network for cardano-node
62+
#
63+
# This selects the correct network for operation and can be configured to
64+
# any network, not just the named networks.
65+
#
66+
# This can also be set via the CARDANO_NODE_NETWORK_MAGIC environment variable
67+
networkMagic:
68+
69+
# Path to UNIX socket file for cardano-node
70+
#
71+
# This can also be set via the CARDANO_NODE_SOCKET_PATH environment variable
72+
socketPath:
73+
74+
# Address/port for cardano-node
75+
#
76+
# This requires that you be running socat or similar to create a bridge
77+
# between TCP and the UNIX socket.
78+
#
79+
# These can also be set via the CARDANO_NODE_SOCKET_TCP_HOST and
80+
# CARDANO_NODE_SOCKET_TCP_PORT environment variables
81+
address:
82+
port:
83+
84+
# Query Timeout
85+
#
86+
#
87+
# This can also be set via the CARDANO_NODE_SOCKET_QUERY_TIMEOUT environment variable
88+
queryTimeout: 180
89+
90+
# Skip checking connection to cardano-node
91+
#
92+
# On startup, we connect to the configured cardano-node and exit on failure.
93+
#
94+
# Setting this to true will skip this check.
95+
skipCheck:
96+
97+
# Timeout for connections to cardano-node
98+
#
99+
# This can also be set via the CARDANO_NODE_SOCKET_TIMEOUT environment
100+
# variable
101+
timeout:
102+
103+
Utxorpc:
104+
# Listen address for Utxo RPC
105+
#
106+
# This can also be set via the GRPC_LISTEN_ADDRESS environment variable
107+
address:
108+
109+
# Listen port for Utxo RPC
110+
#
111+
# This can also be set via the GRPC_LISTEN_PORT environment variable
112+
port: 9090
113+
114+
tls:
115+
# Cert file path
116+
#
117+
# This can also be set via the TLS_CERT_FILE_PATH environment variable
118+
certFilePath:
119+
120+
# key file path
121+
#
122+
# This can also be set via the TLS_KEY_FILE_PATH environment variable
123+
keyFilePath:

0 commit comments

Comments
 (0)