Mastodon/Setup: Difference between revisions

From neuromatch
No edit summary
No edit summary
Line 16: Line 16:


https://docs.joinmastodon.org/admin/prerequisites/
https://docs.joinmastodon.org/admin/prerequisites/
See also: [[Linode/Setup]]


<markdown>
<markdown>
- [x] Turn off password SSH access
- [x] Turn off password SSH access
- [x] Install fail2ban
- [x] Configure iptables to only allow SSH and HTTP/HTTPS
</markdown>
</markdown>


=== Configure the email server ===
=== Configure the email server ===

Revision as of 23:44, 25 November 2022

In this case we are using glitch-soc to run a Mastodon server.

We will make:

  • One "default" instance at neuromatch.social
  • One Dev Instance at dev.neuromatch.social

We will be following the official Mastodon setup docs (except cloning our fork of glitch-soc instead of the base masto repo):

Prereqs

https://docs.joinmastodon.org/admin/prerequisites/

See also: Linode/Setup

  • Turn off password SSH access
  • Install fail2ban
  • Configure iptables to only allow SSH and HTTP/HTTPS

Configure the email server

Create a SendGrid account, go to Settings > API Keys, and generate an API key.

Then set up the config like this:

SMTP_SERVER=smtp.sendgrid.net
SMTP_PORT=587
SMTP_LOGIN=apikey
SMTP_PASSWORD=<your-api-key>
SMTP_FROM_ADDRESS=youremail@gmail.com

(for SMTP_LOGIN literally just use "apikey")