|
| 1 | +--- |
| 2 | +description: Configure to publish IPNI announcements over HTTP |
| 3 | +--- |
| 4 | + |
| 5 | +# HTTP indexer announcement |
| 6 | + |
| 7 | +## Announce over HTTP |
| 8 | + |
| 9 | +`IndexProvider.HttpPublisher.AnnounceOverHttp` must be set to `true` to enable the http announcements. Once HTTP announcements are enabled, the local-index provider will continue to announce over libp2p gossipsub along with HTTP for the specific indexers. |
| 10 | + |
| 11 | +The advertisements are send to the indexer nodes defined in `DirectAnnounceURLs`. You can specify more than 1 URL to announce to multiple indexer nodes. |
| 12 | + |
| 13 | +Once an IPNI node starts processing the advertisements, it will reach out to the Boost node to fetch the data. Thus, Boost node needs to specify a public IP and port which can be used by the indexer node to query for data. |
| 14 | + |
| 15 | +``` |
| 16 | +[IndexProvider] |
| 17 | + # Enable set whether to enable indexing announcement to the network and expose endpoints that |
| 18 | + # allow indexer nodes to process announcements. Enabled by default. |
| 19 | + # |
| 20 | + # type: bool |
| 21 | + # env var: LOTUS_INDEXPROVIDER_ENABLE |
| 22 | + #Enable = true |
| 23 | +
|
| 24 | + # EntriesCacheCapacity sets the maximum capacity to use for caching the indexing advertisement |
| 25 | + # entries. Defaults to 1024 if not specified. The cache is evicted using LRU policy. The |
| 26 | + # maximum storage used by the cache is a factor of EntriesCacheCapacity, EntriesChunkSize and |
| 27 | + # the length of multihashes being advertised. For example, advertising 128-bit long multihashes |
| 28 | + # with the default EntriesCacheCapacity, and EntriesChunkSize means the cache size can grow to |
| 29 | + # 256MiB when full. |
| 30 | + # |
| 31 | + # type: int |
| 32 | + # env var: LOTUS_INDEXPROVIDER_ENTRIESCACHECAPACITY |
| 33 | + #EntriesCacheCapacity = 1024 |
| 34 | +
|
| 35 | + # EntriesChunkSize sets the maximum number of multihashes to include in a single entries chunk. |
| 36 | + # Defaults to 16384 if not specified. Note that chunks are chained together for indexing |
| 37 | + # advertisements that include more multihashes than the configured EntriesChunkSize. |
| 38 | + # |
| 39 | + # type: int |
| 40 | + # env var: LOTUS_INDEXPROVIDER_ENTRIESCHUNKSIZE |
| 41 | + #EntriesChunkSize = 16384 |
| 42 | +
|
| 43 | + # TopicName sets the topic name on which the changes to the advertised content are announced. |
| 44 | + # If not explicitly specified, the topic name is automatically inferred from the network name |
| 45 | + # in following format: '/indexer/ingest/<network-name>' |
| 46 | + # Defaults to empty, which implies the topic name is inferred from network name. |
| 47 | + # |
| 48 | + # type: string |
| 49 | + # env var: LOTUS_INDEXPROVIDER_TOPICNAME |
| 50 | + #TopicName = "" |
| 51 | +
|
| 52 | + # PurgeCacheOnStart sets whether to clear any cached entries chunks when the provider engine |
| 53 | + # starts. By default, the cache is rehydrated from previously cached entries stored in |
| 54 | + # datastore if any is present. |
| 55 | + # |
| 56 | + # type: bool |
| 57 | + # env var: LOTUS_INDEXPROVIDER_PURGECACHEONSTART |
| 58 | + #PurgeCacheOnStart = true |
| 59 | +
|
| 60 | + [IndexProvider.Announce] |
| 61 | + # Make a direct announcement to a list of indexing nodes over http. |
| 62 | + # Note that announcements are already made over pubsub regardless |
| 63 | + # of this setting. |
| 64 | + # |
| 65 | + # type: bool |
| 66 | + # env var: LOTUS_INDEXPROVIDER_ANNOUNCE_ANNOUNCEOVERHTTP |
| 67 | + #AnnounceOverHttp = true |
| 68 | +
|
| 69 | + # The list of URLs of indexing nodes to announce to. |
| 70 | + # |
| 71 | + # type: []string |
| 72 | + # env var: LOTUS_INDEXPROVIDER_ANNOUNCE_DIRECTANNOUNCEURLS |
| 73 | + #DirectAnnounceURLs = ["https://cid.contact/ingest/announce"] |
| 74 | +
|
| 75 | + [IndexProvider.HttpPublisher] |
| 76 | + # If not enabled, requests are served over graphsync instead. |
| 77 | + # |
| 78 | + # type: bool |
| 79 | + # env var: LOTUS_INDEXPROVIDER_HTTPPUBLISHER_ENABLED |
| 80 | + #Enabled = true |
| 81 | +
|
| 82 | + # Set the public hostname / IP for the index provider listener. |
| 83 | + # eg "82.129.73.111" |
| 84 | + # This is usually the same as the for the boost node. |
| 85 | + # |
| 86 | + # type: string |
| 87 | + # env var: LOTUS_INDEXPROVIDER_HTTPPUBLISHER_PUBLICHOSTNAME |
| 88 | + #PublicHostname = "82.129.73.111" |
| 89 | +
|
| 90 | + # Set the port on which to listen for index provider requests over HTTP. |
| 91 | + # Note that this port must be open on the firewall. |
| 92 | + # |
| 93 | + # type: int |
| 94 | + # env var: LOTUS_INDEXPROVIDER_HTTPPUBLISHER_PORT |
| 95 | + #Port = 3401 |
| 96 | +``` |
| 97 | + |
0 commit comments