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: proxy container #8000

Merged
merged 20 commits into from
Jun 17, 2022
Merged

feat: proxy container #8000

merged 20 commits into from
Jun 17, 2022

Conversation

didinele
Copy link
Member

@didinele didinele commented Jun 4, 2022

Please describe the changes this PR makes and why it should be merged:
As the next step to #7925, this PR introduces another "package" (it's more of a container), with the purpose of being an easy-to-deploy HTTP proxy built on top of @discordjs/proxy

Additionally, this PR:

  • bac20e8: fixes a hard-crash from @discordjs/proxy, since apparently error.message would contain "unsupported characters"
  • d1832eb: documents populateAbortErrorResponse (apparently it had no doc comment, something that was missed from feat: @discordjs/proxy #7925, oops)
  • 6f83219: notable fix, proxyRequests now properly forwards Content-Type, no longer causing errors on non-GET requests

TODO:

  • Usage section in the README
  • Dockerfile
  • Publish workflow

@didinele didinele force-pushed the feat/proxy-container branch 2 times, most recently from adb323e to 93f42d3 Compare June 4, 2022 16:54
@didinele didinele force-pushed the feat/proxy-container branch from dd66b50 to 486974d Compare June 4, 2022 17:29
@didinele didinele force-pushed the feat/proxy-container branch from 6f83219 to 90f94a9 Compare June 5, 2022 13:50
@didinele didinele force-pushed the feat/proxy-container branch from 90f94a9 to 7737702 Compare June 10, 2022 20:05
@vercel
Copy link

vercel bot commented Jun 10, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
discord-js ⬜️ Ignored (Inspect) Jun 16, 2022 at 9:39AM (UTC)

@didinele didinele marked this pull request as ready for review June 11, 2022 17:25
@didinele
Copy link
Member Author

Meant in the container, taken care of.

packages/proxy-container/package.json Outdated Show resolved Hide resolved
packages/proxy-container/package.json Outdated Show resolved Hide resolved
@kyranet kyranet added this to the proxy v1 milestone Jun 12, 2022
@vladfrangu vladfrangu requested a review from kyranet June 12, 2022 11:09
.github/workflows/publish-dev-docker.yml Show resolved Hide resolved
@iCrawl iCrawl requested a review from vladfrangu June 13, 2022 18:05
@iCrawl iCrawl self-requested a review June 13, 2022 18:05
@didinele didinele requested a review from iCrawl June 13, 2022 18:18
Copy link
Member

@kyranet kyranet left a comment

Choose a reason for hiding this comment

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

Just two small things:

packages/proxy-container/tsup.config.ts Show resolved Hide resolved
packages/proxy-container/src/index.ts Show resolved Hide resolved
@JosPoka

This comment was marked as spam.

@iCrawl iCrawl merged commit 2681929 into discordjs:main Jun 17, 2022
@didinele didinele deleted the feat/proxy-container branch June 17, 2022 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

7 participants