I was really hoping to get an activitypub instance for myself a long while ago and I tried pleroma first, it’s light but complicated to update and setup for me. Then I tested GoToSocial however, it never seemed to federate that well.
Recently, I found out about snac which is a pretty neat and minimalistic system to create an activitypub server compatible with Mastodon. It’s written in C and lightning fast, intended to use little resources, especially for single user instances though it does accept more than one user.
If you wanna install your own instance, try using the linked repository to build and install it. Check the man related info. You can setup an user specific to snac to keep the data and run the service be it on Linux or BSD.
What I wanted to share was my Caddyfile since i’m using Caddy server. The cool thing about Caddy is that it automagically sets up the SSL certificate. It spares you from that little problem all of us have which is dealing with HTTPS! Also it’s pretty simple to share a folder with it over the WWW.
My config is the following (for ffuent.es/pub)
ffuent.es {
root * /var/www/html
file_server
reverse_proxy /pub 127.0.0.1:8001
reverse_proxy /pub/* 127.0.0.1:8001
reverse_proxy /.well-known/webfinger 127.0.0.1:8001
reverse_proxy /api/v1/* 127.0.0.1:8001
reverse_proxy /api/v2/* 127.0.0.1:8001
reverse_proxy /oauth/* 127.0.0.1:8001
reverse_proxy /.well-known/nodeinfo 127.0.0.1:8001
reverse_proxy /.well-known/host-meta 127.0.0.1:8001
reverse_proxy /share 127.0.0.1:8001
reverse_proxy /authorize_interaction 127.0.0.1:8001
}
Any comments, corrections or questions, just send me an email at ffuentes at sdf org