nix | ||
versions/mastodon | ||
.gitignore | ||
.is-minifedi | ||
config.nix | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
minifedi | ||
README.md | ||
TODO |
Minifedi
Minifedi is a tool to quickly spin up a bunch of ActivityPub servers for local testing.
Minifedi is entirely self-contained and needs no changes to your system configuration besides installing Nix; you can install it with a git clone, delete it with rm -rf
, and your system will be exactly the way it was before.
System Requirements
- macOS or Linux (any distribution). Tested on x86_64, aarch64 should work. Other architectues probably won't due to poor Nix support, unfortunately.
- Windows isn't natively supported, but might work under WSL.
- A recent version of Nix.
- This doesn't mean you need to be on NixOS; Nix can be installed on more or less any distribution, and is happy to do its own thing without interfering with your system.
- ~4GB free on disk.
- ~4GB free in /tmp.
- On many Linux distributions, this means you'll need ~8GB of RAM.
- You might be able to get away with less if you disable GoToSocial.
- Ports 80 and 443 free.
- This is required because some (all) fedi software is only willing to federate with servers on the standard ports.
- macOS lets any user listen on these ports. On Linux, Minifedi will use sudo to gain the capability required to listen on these ports, then immediately switch back to your user and relinquish all other capabilties.
Warnings
Minifedi is very new software. I'm fairly sure it won't break your system (it's designed very specifically to not do anything that possibly could) but it might not work either.
Minifedi is designed for testing only. The assumption is you'll happily throw out everything stored in it when you're done. Don't store anything you care about in an instance run by Minifedi.
Getting Started
Minifedi's goal is to "just work" on every machine. If the instructions below fail for you, please file an issue; I'll fix it if at all possible.
- Install Nix, if you haven't.
- If you install Nix through your OS package manager, you may need to add yourself to the
nix-users
group and/or ensure thenix-daemon
service is enabled.
- If you install Nix through your OS package manager, you may need to add yourself to the
-
git clone https://github.com/Gaelan/minifedi.git cd minifedi
- If you'd like, edit
config.nix
to customize which instances you get. By default, you get one each of Mastodon, Glitch, Akkoma, and GoToSocial, but you're welcome to disable some or run multiple copies of the same type. ./minifedi start
- Wait for stuff to build then start up; this should take 20-30 minutes.
- Your instances should be running and accessible at INSTANCENAME.lvh.me (e.g. https://mastodon.lvh.me).
Each instance is created by default with five users:
- username
a
, emaila@example.com
, passwordMiniFediA1!
, admin - username
b
, emailb@example.com
, passwordMiniFediB1!
- username
c
, emailc@example.com
, passwordMiniFediC1!
- username
d
, emaild@example.com
, passwordMiniFediD1!
- username
e
, emaile@example.com
, passwordMiniFediE1!
Enjoy your testing!
Supported Software
Minifedi currently supports the following:
- Mastodon
- Akkoma
- GoToSocial
Forks of the above should work fine as well, as long as they haven't changed anything about the build, installation, or configuration process.
How do I…
Reset Minifedi, restoring every instance to its default state?
rm -r data/