peertube-plugin-livechat
peertube-plugin-livechat copied to clipboard
Builtin Prosody: call APIs on localhost
The builtin Prosody server calls some API on the Peertube's plugin. These API are called by the public url. So it goes through nginx on a production server. It would be more efficient to call API directly on the Peertube server (read the config to get the uri with the correct port). It should not be a problem, as we are on the same host.
NB: see how to add a test in the diagnostic tool, for checking that prosody can request APIs.
NB: seems that required informations are not in the getServerConfig helper. Perhaps use a text field in the plugin settings to set manually the uri (or just the port?) for APIs.
waiting for https://github.com/Chocobozzz/PeerTube/issues/5416
Fixed by https://github.com/JohnXLivingston/peertube-plugin-livechat/pull/235