mirror of
https://github.com/jakejarvis/mastodon-installer.git
synced 2025-04-25 14:15:22 -04:00
🦣 Mastodon installer (unofficial)
⚠️ This is beyond experimental and may need some manual intervention from you. Let me know about any problems you run into!
Be your own hall monitor and host your own Mastodon server on the fediverse!
Requirements
- Ubuntu 20.04 LTS (support for 22.04 is in the works!)
- A server or VPS (in the cloud, on your Raspberry Pi, anywhere!) with at least 2 GB of memory
- A domain name (or subdomain) already pointing to this server's public IP address
Usage
Running the script
If you trust me (which you shouldn't, please don't trust random people on the internet!) this will download and run the installer automatically:
# with curl
curl -fsSL https://github.com/jakejarvis/mastodon-installer/raw/HEAD/install.sh | bash
# alternatively, with wget
wget -q https://github.com/jakejarvis/mastodon-installer/raw/HEAD/install.sh -O- | bash
Or, clone this repository and make sure the installer is executable before running:
git clone https://github.com/jakejarvis/mastodon-installer.git && cd mastodon-installer
chmod +x install.sh
./install.sh
What's next?
- Close new registrations if you intend for this to be a single-user server.
- Review the many config options located in
/home/mastodon/live/.env.production
- Harden your server's security using:
- Offload media files to Amazon S3. They will eat a ton of disk space, even on a single-user server! You can also use an S3-compatible cloud storage product, such as:
- Configure an email provider:
- Tune Sidekiq & Puma for performance and consider using pgBouncer.
Software installed
- Mastodon, of course
- Nginx
- PostgreSQL
- Redis
- Node + Yarn
- Ruby
- Certbot
License
MIT
Languages
Shell
100%