From 68bc1cb4b64c8b8c6dd724a9b470862dd7f953dc Mon Sep 17 00:00:00 2001 From: Tealk Date: Thu, 17 Mar 2022 13:58:41 +0100 Subject: [PATCH] update readme https://codeberg.org/kytta/toot/issues/4 --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 93356af..438023c 100644 --- a/README.md +++ b/README.md @@ -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