From 4cde56228b98bffa580cef11b991bd82bd99551d Mon Sep 17 00:00:00 2001 From: achingbrain Date: Mon, 15 Apr 2024 09:55:17 +0100 Subject: [PATCH 1/2] feat: use blockstore sessions Adds a `USE_SESSIONS` env var that controls whether to use blockstore sessions or not. The `session` option will be passed to `@helia/verified-fetch` accordingly. --- README.md | 1 + src/constants.ts | 2 ++ src/helia-http-gateway.ts | 6 +++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f47b2e6..c473a755 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ $ npm start | `USE_DELEGATED_ROUTING` | Whether to use the delegated routing v1 API | `true` | | `DELEGATED_ROUTING_V1_HOST` | Hostname to use for delegated routing v1 | `https://delegated-ipfs.dev` | | `USE_DHT_ROUTING` | Whether to use @libp2p/kad-dht for routing when libp2p is enabled | `true` | +| `USE_SESSIONS` | If true, use a blockstore session per IPFS/IPNS path | `true` |