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(Homeserver): Switch API from user ID in the path to user ID as a subdomain #57

Open
Nuhvi opened this issue Nov 15, 2024 · 1 comment · May be fixed by #37
Open

feat(Homeserver): Switch API from user ID in the path to user ID as a subdomain #57

Nuhvi opened this issue Nov 15, 2024 · 1 comment · May be fixed by #37
Assignees

Comments

@Nuhvi
Copy link
Collaborator

Nuhvi commented Nov 15, 2024

Currently the AP of the homeserver is /:userid/pub/ since Pkarr is getting support for Endpoints resolution, we can do userid.<homeserver>/pub/ where the homeserver gets a direct connection and reads the HTTP host to figure out which user is being queried.

In browser, we will need to embed this subdomain inside a custom header, because we can't send a request to IP and port directly, and it is not guaranteed that the homeserver owner can run a server with a wildcard TLS certificate.

@Nuhvi Nuhvi self-assigned this Nov 15, 2024
@Nuhvi Nuhvi linked a pull request Dec 23, 2024 that will close this issue
Draft
@Nuhvi
Copy link
Collaborator Author

Nuhvi commented Dec 23, 2024

Instead of subdomains, we are going with normal domains and use Pkarr Endpoint resolution and TLS.

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 a pull request may close this issue.

1 participant