Limnoria/plugins/Fediverse
Valentin Lorentz eaf7222509 Fediverse: Cache host support for webfinger before snarfing.
This is much cheaper both for us and the host if the host
doesn't support activitypub at all (which is what happens
most of the time).
2020-05-14 21:33:34 +02:00
..
local Fediverse: First draft. 2020-05-09 19:27:34 +02:00
README.md Fediverse: Document how to enable HTTP signatures. 2020-05-10 11:17:35 +02:00
__init__.py Fediverse: First draft. 2020-05-09 19:27:34 +02:00
activitypub.py Fediverse: Cache host support for webfinger before snarfing. 2020-05-14 21:33:34 +02:00
config.py Fediverse: Add URL snarfer. 2020-05-10 14:52:55 +02:00
plugin.py Fediverse: Cache host support for webfinger before snarfing. 2020-05-14 21:33:34 +02:00
test.py Fediverse: Cache host support for webfinger before snarfing. 2020-05-14 21:33:34 +02:00
test_data.py Fediverse: Move test data to its own module. 2020-05-10 15:11:10 +02:00

README.md

Fetches information from ActivityPub servers.

Enabling Secure Fetch

The default configuration works with most ActivityPub servers, but not all of them, because they require an HTTP Signature to fetch profiles and statuses.

Because of how HTTP Signatures work, you need to add some configuration for Limnoria to support it.

First, you should set supybot.servers.http.port to a port you want your bot to listen on (by default its 8080). If there are already plugins using it (eg. if Fediverse is already running), you should either unload all of them and load them back, or restart your bot.

Then, you must configure a reverse-proxy in front of your bot (eg. nginx), and it must support HTTPS.

Finally, set supybot.servers.http.publicUrl to the public URL of this server (when opening this URL in your browser, it should show a page with a title like “Supybot web server index”).