2024-02-22 10:56:31 +01:00
|
|
|
# How to start up a mastodon VM
|
|
|
|
|
|
|
|
```bash
|
|
|
|
nixos-rebuild build-vm --flake .#mastodon
|
|
|
|
./result/bin/run-nixos-vm
|
|
|
|
```
|
|
|
|
|
2024-03-06 15:16:35 +01:00
|
|
|
Now you can access mastodon at <https://mastodon.localhost:55001>
|
2024-02-22 10:56:31 +01:00
|
|
|
|
2024-02-28 22:49:16 +01:00
|
|
|
- You will have to "accept the security risk".
|
|
|
|
- It may take a minute for the webpage to come online. Until then you will see 502 Bad Gateway
|
2024-02-22 10:56:31 +01:00
|
|
|
|
2024-03-06 10:40:22 +01:00
|
|
|
Remember that if you want to clear the state from one launch to the next, you should delete the `nixos.qcow2` file that is created.
|
|
|
|
|
2024-03-06 15:16:35 +01:00
|
|
|
- email, when it works, will be accessible at <https://mastodon.localhost:55001/letter_opener>
|
2024-03-06 10:40:22 +01:00
|
|
|
|
2024-02-22 10:56:31 +01:00
|
|
|
# TODOs
|
|
|
|
|
|
|
|
- [ ] set up a domain name and a DNS service so we can do deploy this to an actual machine
|
|
|
|
- [ ] set up an email service
|
|
|
|
- [ ] add logging
|
|
|
|
- [ ] errors / logs
|
|
|
|
- [ ] performance
|
|
|
|
- [ ] switch to garage / s3 storage
|
|
|
|
- SEE: https://docs.joinmastodon.org/admin/optional/object-storage/
|
|
|
|
- [ ] decouple the postgres database from this machine
|
|
|
|
- [ ] test with high use / throughput
|
|
|
|
- [ ] configure scaling behaviour
|
|
|
|
- SEE: https://docs.joinmastodon.org/admin/scaling/
|
|
|
|
- [ ] remove the need for "accept security risk" dialogue if possible
|
2024-03-06 10:40:22 +01:00
|
|
|
- [ ] development environment does not work seamlessly.
|
2024-03-06 15:16:35 +01:00
|
|
|
- [x] don't require proxy server
|
2024-03-06 10:40:22 +01:00
|
|
|
- either forward 443 directly, or get mastodon to accept connections on a different port (maybe 3000? see development environment documentation)
|
|
|
|
- [ ] get letter_opener working
|
2024-02-22 10:56:31 +01:00
|
|
|
|
|
|
|
# resources
|
|
|
|
|
|
|
|
- Tutorial for setting up better logging: https://krisztianfekete.org/self-hosting-mastodon-on-nixos-a-proof-of-concept/
|
2024-03-06 10:40:22 +01:00
|
|
|
- Setting up development environment: https://docs.joinmastodon.org/dev/setup/
|