Are we ActivityPub yet?
This template repo re/generates its public and private key pair. To keep the key pair:
- you can modify the local build plugin
- you can disable Netlify auto deploy
- Netlify account
- Discord webhook (OPTIONAL)
- You should have a GitHub/GitLab account
- Think of a username for your instance
- (OPTIONAL) obtain a webhook for your Discord server
- Click the Netlify quick deploy button above
- Choose the OAuth provider that you use (see step#0)
- After agreeing to the permissions that Netlify will be granted, you will have 3 fields
- Field SELF_ACTOR is for the username you chose (see step#1)
- Field DISCORD_WEBHOOK is for the optional webhook you created (see step#2)
- Field GITHUB_AVATAR is for the optional URL of your GitHub profile
- Click the button to continue, and Netlify should deploy and make a random site name (adjective-noun-NNNN.netlify.app)
- If your webhook was configured for step#7, there should be a message delivered with the link to the new private key PEM
- Check that the webfinger file is responding by visiting webfinger.net and searching for your username@site-name
- In the webfinger response, you can find the actor URL of the form
https://site-name/u/username
- Check that the actor URL is responding with JSON that contains properties for the inbox URL
- Navigate to the Functions page of the Netlify dashboard, and choose the
inbox
- Check that a follow activity works by manually creating the request, start a terminal:
vi examples/subscribe.go
go build -o testsub examples/subscribe.go
testsub -priv $PWD/private-key.pem
- Look at the real time log output in the Functions page, and it should show the Accept activity returned by the remote instance that we subscribed-to
- Verify by visiting the instance subscribed-to and searching for username@site-name
- To clean up, you can make a Undo activity by using the
examples/unsubscribe.go
Honk by Ted Unangst (LICENSE)
Kotori Netlify by Musakai (LICENSE)
Add ActivityPub Follows to Blog by Tom MacWright
Mastodon 6 files by Justin Garrison (LICENSE)
Reference AP Inbox by Darius Kazemi (LICENSE)
Basic AP Server by Eugen Rochko
AP Inbox by Eugen Rochko