Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use @helia/verified-fetch #63

Merged
merged 25 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
9a080cd
feat: use @helia/verified-fetch
SgtPooki Jan 24, 2024
a27934d
chore: use local tarball so CI runs properly
SgtPooki Jan 24, 2024
b4c61e5
feat: re-enable custom libp2p
SgtPooki Jan 24, 2024
e9f47e5
chore: update fastify
SgtPooki Jan 24, 2024
1c781c4
chore: some minor changes
SgtPooki Jan 24, 2024
daa4fed
fix: fastify/cors patch version
SgtPooki Jan 24, 2024
893a320
chore: package-lock cleared out
SgtPooki Jan 24, 2024
3ad077f
fix: lint issues
SgtPooki Jan 24, 2024
a774085
deps: use @helia/verified-fetch@next
SgtPooki Feb 13, 2024
d9d14e9
feat: content-type-parser for verified-fetch & dep-check fixes
SgtPooki Feb 13, 2024
34afd73
deps: update *-level deps
SgtPooki Feb 13, 2024
7dc2af9
deps: update libp2p deps
SgtPooki Feb 13, 2024
7933118
deps: fix pino-pretty missing error from fastify
SgtPooki Feb 13, 2024
9e2e338
fix: dns-link label decoding
SgtPooki Feb 13, 2024
6564215
chore: remove verified-fetch tarball
SgtPooki Mar 11, 2024
6312031
chore: cleanup console logging and eslint disabling comments
SgtPooki Mar 11, 2024
29c27d6
deps: helia&libp2p deps
SgtPooki Mar 11, 2024
4597384
deps: use full semver strings for deps. remove @types/mime-types
SgtPooki Mar 11, 2024
0630e45
chore: remove unnecessary casting
SgtPooki Mar 11, 2024
a65e3f6
feat: use latest @helia/verified-fetch
SgtPooki Mar 11, 2024
36b2226
chore: set discoverRelays to 0
SgtPooki Mar 11, 2024
4a7a253
chore: address PR comments and cleanup
SgtPooki Mar 11, 2024
a6b08bf
Merge branch 'main' into feat/helia-verified-fetch
SgtPooki Mar 11, 2024
5509431
chore: fix build
SgtPooki Mar 11, 2024
84455c1
chore: disable drand.love from e2e tests
SgtPooki Mar 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/** @type {import('aegir').PartialOptions} */
export default {
dependencyCheck: {
ignore: [
'dotenv',
'typescript',
'wait-on',
SgtPooki marked this conversation as resolved.
Show resolved Hide resolved
'pino-pretty' // implicit dependency for fastify logging
],
productionIgnorePatterns: [
'.aegir.js',
'playwright.config.ts',
'scripts/**',
'e2e-tests/**'
]
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ $ docker run -it -p 8080:8080 -e DEBUG="helia-http-gateway*" helia-http-gateway:
| `TRUSTLESS_GATEWAYS` | Comma separated list of trusted gateways to fetch content from | [Defined in Helia](https://github.com/ipfs/helia/blob/main/packages/helia/src/block-brokers/trustless-gateway/index.ts) |
| `USE_LIBP2P` | Whether to use libp2p networking | `true` |
Copy link
Member

@achingbrain achingbrain Mar 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we couldn't just merge the USE_BITSWAP and USE_LIBP2P vars to just be use @helia/http or use helia?

Like, USE_HTTP_GATEWAYS_ONLY or something to select @helia/http.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm down with finagling the configs in another PR once we get verified-fetch in

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to #65

| `ECHO_HEADERS` | A debug flag to indicate whether you want to output request and response headers | `false` |
| `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` |

<!--
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/smoketest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const pages = [
'consensuslab.world',
'docs.ipfs.tech',
'docs.libp2p.io',
'drand.love',
// 'drand.love', // no dnsaddr or dnslink TXT record, only "x-ipfs-path" header (supported only by ipfs-companion and brave)
// 'fil.org', // timing out
// 'filecoin.io', // timing out
// 'green.filecoin.io', // timing out
Expand Down
Loading
Loading