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

Subdomain support for providing secure context when hosting websites #2957

Closed
agazso opened this issue May 16, 2022 · 1 comment
Closed

Subdomain support for providing secure context when hosting websites #2957

agazso opened this issue May 16, 2022 · 1 comment
Assignees
Labels
enhancement enhancement of existing functionality issue

Comments

@agazso
Copy link
Member

agazso commented May 16, 2022

Summary

It would be good if Bee supported subdomain access (e.g. http://<cid>.localhost:1633) so that websites can be served in a secure context.

Motivation

This is important when using with the swarm-extension so that websites can be served in a secure context, but also to not break the path for assets, as is the case by prepending /bzz/<hash> when accessing assets.

Implementation

The implementation would depend on adding two things two Bee:

  • CID support (something similar to what swarm-cid-js is doing)
  • Subdomain support so that a HTTP Host header field can be interpreted in the form of http://<cid-or-ens>.localhost:1633 and resolved internally as if it was accessed through the /bzz endpoint.

Drawbacks

It makes Bee more complex and adds more dependencies (e.g. CID support). An alternative could be to use the gateway-proxy for this, however that would add an extra dependency for people who are using the swarm-extension, therefore this complexity would be pushed on the users.

See also previous issue #1502

@bee-runner bee-runner bot added the issue label May 16, 2022
@agazso agazso added the enhancement enhancement of existing functionality label May 16, 2022
@aloknerurkar aloknerurkar self-assigned this May 17, 2022
@agazso
Copy link
Member Author

agazso commented May 20, 2022

Related PR: #2970

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhancement of existing functionality issue
Projects
None yet
Development

No branches or pull requests

2 participants