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

Possibility for plugins to add host-meta informations #5808

Open
JohnXLivingston opened this issue May 25, 2023 · 0 comments
Open

Possibility for plugins to add host-meta informations #5808

JohnXLivingston opened this issue May 25, 2023 · 0 comments
Labels
Component: PeerTube Plugin 📦 Features that can be developed in a plugin, but require PeerTube plugin API development Type: Feature Request ✨

Comments

@JohnXLivingston
Copy link
Contributor

Describe the problem to be solved

Hello,

Some plugin could implement some advanced feature that requires defining new web host metadata.
For example, my livechat plugin could declare the websocket endpoint ( https://xmpp.org/extensions/xep-0156.html , https://xmpp.org/extensions/xep-0468.html ), so that chat endpoints can be discovered and join easily by remote clients/servers.

So it would be nice if a plugin could add some host-meta informations.

There are 2 requirements:

  • adding links in the /.well-known/host-meta result
  • adding new route under /.well-known (not needed in my case, but could be for other plugins)

Describe the solution you would like

One possible way is to provide 2 helper functions.

The first one to add links to the host-meta page.

The second one to add new routes. If a route already exists (because it is part of Peertube, or because another plugin has registered it), it should fail.

@Chocobozzz Chocobozzz added Type: Feature Request ✨ Component: PeerTube Plugin 📦 Features that can be developed in a plugin, but require PeerTube plugin API development labels May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: PeerTube Plugin 📦 Features that can be developed in a plugin, but require PeerTube plugin API development Type: Feature Request ✨
2 participants