fix mastodon (why was it broken??)

This commit is contained in:
Taeer Bar-Yam 2024-03-20 05:23:57 -04:00
parent 3e4ab1ecf6
commit 1b0fcff9fb
3 changed files with 11 additions and 8 deletions

View file

@ -21,7 +21,7 @@ and then run it with
You can then access the apps on your local machine (using the magic of port forwarding) at the following addresses
- Mastodon: <https://mastodon.localhost:55001>
- Mastodon: <http://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"
- (NOTE: currently broken) email sent from the mastodon instance (e.g. for setting up an account) will be accessible at <https://mastodon.localhost:55001/letter_opener>
@ -40,6 +40,7 @@ You can then access the apps on your local machine (using the magic of port forw
- mastodon-web.service
- peertube.service
- unclear yet which pixelfed services are useful
- you can ssh to the machine using `ssh -p 2222 root@localhost`
# TODOs

View file

@ -32,13 +32,13 @@
"-mon chardev=char0,mode=readline"
"-device virtconsole,chardev=char0,nr=0"
];
# forwardPorts = [
# {
# from = "host";
# host.port = 2222;
# guest.port = 22;
# }
# ];
forwardPorts = [
{
from = "host";
host.port = 2222;
guest.port = 22;
}
];
};
};
}

View file

@ -81,6 +81,8 @@
enableUnixSocket = false;
extraConfig = {
RAILS_ENV = "development";
# to be accessible from outside the VM
BIND = "0.0.0.0";
# for letter_opener (still doesn't work though)
REMOTE_DEV = "true";
};