Find a file
2024-03-19 19:43:20 -04:00
.envrc mastodon vm 2024-02-22 04:56:31 -05:00
.gitignore mastodon vm 2024-02-22 04:56:31 -05:00
common.nix minimal peertube VM 2024-03-19 19:43:20 -04:00
flake.lock mastodon vm 2024-02-22 04:56:31 -05:00
flake.nix minimal peertube VM 2024-03-19 19:43:20 -04:00
mastodon.nix minimal peertube VM 2024-03-19 19:43:20 -04:00
peertube.nix minimal peertube VM 2024-03-19 19:43:20 -04:00
README.md minimal peertube VM 2024-03-19 19:43:20 -04:00

How to start up a mastodon VM

nixos-rebuild build-vm --flake .#mastodon 
./result/bin/run-nixos-vm

Now you can access mastodon at https://mastodon.localhost:55001

  • 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

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.

peertube

nixos-rebuild build-vm --flake .#peertube 
./result/bin/run-nixos-vm

Now you can access peertube at https://peertube.localhost:9000

The root account can be logged in with username "root". The password can be obtained with the command

journalctl -u peertube | perl -ne '/password: (.*)/ && print $1'

or just

journalctl -u peertube | grep password

and look at the end of the line.

Creating other accounts has to be enabled via the admin interface. Administration > Configuration > Basic > Enable Signup or just add an account directly from Administration > Create user. But functionality can also be tested from the root account.

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
  • decouple the postgres database from this machine
  • test with high use / throughput
  • configure scaling behaviour
  • remove the need for "accept security risk" dialogue if possible
  • development environment does not work seamlessly.
  • don't require proxy server
    • either forward 443 directly, or get mastodon to accept connections on a different port (maybe 3000? see development environment documentation)
  • get letter_opener working

resources