This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
/
config.yaml
131 lines (92 loc) · 3.07 KB
/
config.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
# The following is an example Fuel indexer configuration file.
#
# This configuration spec is intended to be used for a single instance
# of a Fuel indexer node or service.
#
# For more info on how the Fuel indexer works, read the docs: https://docs.fuel.network/docs/indexer/
# or specifically read up on these configuration options: https://docs.fuel.network/docs/indexer/getting-started/indexer-service-infrastructure/
# Whether to allow replacing an indexer.
#
# If this is disabled, then an HTTP 409 Conflict will be returned if an indexer with the same name already exists.
replace_indexer: false
# Log level passed to the Fuel Indexer service.
log_level: info
# Use Prometheus metrics reporting.
metrics: true
# Prevent indexers from running without handling any blocks.
stop_idle_indexers: false
# Run database migrations before starting service.
run_migrations: true
# Enable verbose logging.
verbose: false
# Start a local Fuel node.
local_fuel_node: false
# Allow network configuration via indexer manifests.
indexer_net_config: false
# The number of WASM opcodes after which the indexer will stop execution.
metering_points: 30000000000
# Allow the web server to accept raw SQL queries.
accept_sql_queries: false
# Amount of blocks to return in a request to a Fuel node.
block_page_size: 20
# Make the service wait for the given duration between block requests to a Fuel client
client_request_delay: ~
# ***********************
# Fuel Node configuration
# ************************
fuel_node:
# Host of the running Fuel node.
host: localhost
# Listening port of the running Fuel node.
port: 4000
# Use a network alias when connecting to a Fuel client.
network: ~
# *************************
# Web API configuration
# *************************
web_api:
# Web API host.
host: localhost
# Web API port.
port: 29987
# Max body size for web server requests.
max_body_size: "5242880"
# ******************************
# Database configuration options
# ******************************
database:
postgres:
# Postgres username.
user: postgres
# Postgres database.
database: postgres
# Postgres password.
password: postgres
# Postgres host.
host: localhost
# Postgres port.
port: 5432
# ******************************
# Indexer service authentication
# ******************************
authentication:
# Require users to authenticate for some operations.
enabled: false
# Which authentication scheme to use.
strategy: jwt
# Secret used if JWT authentication is specified.
jwt_secret: abcdefghijklmnopqrstuvwxyz1234567890
# JWT issuer if JWT authentication is specified.
jwt_issuer: FuelLabs
# Amount of time (seconds) before expiring token if JWT authentication is specified.
jwt_expiry: 2592000
# ********************************
# Rate limit configuration options
# ********************************
rate_limit:
# Enable rate limiting.
enabled: false
# Maximum number of requests to allow over --rate-limit-window..
request_count: 10
# Number of seconds over which to allow --rate-limit-rps.
window_size: 5