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

fix: split RPC API and HTTP Gateway servers #139

Merged
merged 6 commits into from
Apr 11, 2024

Conversation

achingbrain
Copy link
Member

To better conform to Kubo's pattern, run the RPC endpoints on port 5001 and the HTTP Gateway on port 8080.

Also simplifies the Docker file, there's no need to rebuild OpenSSL, the version that comes with node:20-slim is fine.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

To better conform to Kubo's pattern, run the RPC endpoints on port
5001 and the HTTP Gateway on port 8080.

Also simplifies the Docker file, there's no need to rebuild OpenSSL,
the version that comes with `node:20-slim` is fine.
@SgtPooki
Copy link
Member

there's no need to rebuild OpenSSL

anymore. since murat-dogan/node-datachannel#229 was resolved.

Copy link
Member

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

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

i'm a big fan of the cleanup of src/helia-server.ts. overall lgtm. a few issues with old code, but we can cleanup later.

@achingbrain
Copy link
Member Author

anymore. since murat-dogan/node-datachannel#229 was resolved.

Aha, makes sense. Could have used a comment in the Dockerfile as to why we were rebuilding OpenSSL - it took ages and didn't seem to give us anything.

@achingbrain achingbrain merged commit 36625a5 into main Apr 11, 2024
4 checks passed
@achingbrain achingbrain deleted the fix/separate-api-and-http-ports branch April 11, 2024 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants