peertube-plugin-livechat icon indicating copy to clipboard operation
peertube-plugin-livechat copied to clipboard

Builtin Prosody: call APIs on localhost

Open JohnXLivingston opened this issue 3 years ago • 1 comments

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.

JohnXLivingston avatar May 11 '21 12:05 JohnXLivingston

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.

JohnXLivingston avatar May 13 '21 10:05 JohnXLivingston

waiting for https://github.com/Chocobozzz/PeerTube/issues/5416

JohnXLivingston avatar Dec 15 '22 16:12 JohnXLivingston

Fixed by https://github.com/JohnXLivingston/peertube-plugin-livechat/pull/235

JohnXLivingston avatar Aug 02 '23 15:08 JohnXLivingston