From c5e7a2d89567e9852374fe1edfa17a7c051fd5b2 Mon Sep 17 00:00:00 2001 From: DeaDvey Date: Sat, 2 Nov 2024 10:32:56 +0000 Subject: [PATCH] setup info on the readme --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c031e2f..5aacc63 100755 --- a/README.md +++ b/README.md @@ -17,10 +17,19 @@ etc... # Newsletter
If you want to add members to the newsletter, I store a file as /etc/newsletter_members.js:
-```javascript +``` let members = ["member1@gmail.com","member2@outlook.com"] if (typeof module !== 'undefined' && module.exports) { module.exports = members; } ``` +# Setup +I use apache2 to run the website and accept traffic, though for the main site it runs on nodejs which is hosted on port :8003
+You can run /node/app.js in a tmux session for the website
+You can add this to /etc/apache2/sites-enables/000-default.conf to forward to nodejs:
+`ProxyPass / http://locahost:8003/`
+And this if you want other sites that use apache2 not nodejs (as exceptions)
+`ProxyPass /wordpress !`
+You can also check the node page is running with `curl http://localhost:8003`
+