You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/configuration.md
+59-6Lines changed: 59 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ file (`db-sync-config.json` or `db-sync-config.yaml`).
16
16
17
17
## Simple Example
18
18
19
-
Below is a sample `insert_options` section that shows all the defaults:
19
+
Below is a sample `insert_options` section that shows the recommended defaults:
20
20
21
21
```
22
22
{
@@ -41,12 +41,15 @@ Below is a sample `insert_options` section that shows all the defaults:
41
41
"enable": true
42
42
},
43
43
"governance": "enable",
44
-
"offchain_pool_data": "enable",
44
+
"offchain_pool_data": "disable",
45
+
"offchain_vote_data": "disable",
45
46
"json_type": "text"
46
47
}
47
48
}
48
49
```
49
50
51
+
**Note**: Starting from version 13.7.0.1, `offchain_pool_data` and `offchain_vote_data` default to `"disable"`. Enable them if you need offchain metadata fetching.
52
+
50
53
# Properties
51
54
52
55
`insert_options` may contain the following elements:
@@ -63,6 +66,7 @@ Below is a sample `insert_options` section that shows all the defaults:
|`"enable"`| Enables fetching offchain pool metadata. |
536
543
|`"disable"`| Disables fetching pool offchain metadata. |
537
544
545
+
Controls whether db-sync fetches offchain metadata for stake pools. This metadata includes pool descriptions, ticker symbols, homepages, and other information referenced in pool registrations.
546
+
547
+
**Important**: Starting from version 13.7.0.1, this defaults to `"disable"`. Explicitly enable it if you need pool metadata.
548
+
549
+
When enabled, db-sync fetches metadata from URLs stored on-chain with the following restrictions:
550
+
- HTTPS URLs required (HTTP allowed only for localhost testing)
551
+
- Private/internal IP addresses blocked (RFC1918, loopback, link-local, IPv6 ULA)
552
+
- DNS resolution performed immediately before requests
553
+
554
+
## Offchain Vote Data
555
+
556
+
`offchain_vote_data`
557
+
558
+
* Type: `string`
559
+
560
+
**enum**: The value of this property must be equal to one of the following values:
0 commit comments