update readme

https://codeberg.org/kytta/toot/issues/4
This commit is contained in:
Tealk 2022-03-17 13:58:41 +01:00
parent af6420eef8
commit 68bc1cb4b6
No known key found for this signature in database
GPG key ID: 5FE349ABC863E7F9

View file

@ -44,10 +44,25 @@ Self-hosting toot outside of Vercel requires some extra setup:
3. Run the backend server for the form:
```sh
node api/toot.js
pm2 start api/toot.js --watch --ignore-watch="node_modules"
```
> You can find a summary for pm2 at: https://pm2.keymetrics.io/docs/usage/quick-start/
4. Set up a reverse proxy from `localhost:8000` to `/api/toot`
4. Set up webserver
1. Apache
```
placeholder
```
2. Nginx
```
root /home/toot/public;
index.html;
location /api/toot {
proxy_pass http://localhost:8000/;
}
```
## See also