my website files
Go to file
2024-12-27 02:17:48 +00:00
blog fixed template stuff :) 2024-12-27 02:17:48 +00:00
blogs fixed template stuff :) 2024-12-27 02:17:48 +00:00
board fixed template stuff :) 2024-12-27 02:17:48 +00:00
error-pages regular 2024-12-24 22:44:26 +00:00
experiments regular 2024-12-24 22:44:26 +00:00
images regular 2024-12-24 22:44:26 +00:00
isthistheyearofthelinuxdesktop wordpress 2023-12-16 00:46:10 +00:00
leaderboard regular 2024-12-24 22:44:26 +00:00
links regular 2024-12-24 22:44:26 +00:00
maths regular 2024-12-24 22:44:26 +00:00
node fixed template stuff :) 2024-12-27 02:17:48 +00:00
search forgot to push in a while 2024-12-15 20:09:42 +00:00
theunderland regular 2024-12-24 22:44:26 +00:00
.gitignore dec17 2024-12-17 18:11:08 +00:00
dvdfilms.html regular 2024-12-24 22:44:26 +00:00
favicon.ico new blog and extended width from 500 to 750 2024-01-03 00:33:09 +00:00
gitcommit.sh Daily push: Sun 15 Dec 20:11:35 GMT 2024 2024-12-15 20:11:35 +00:00
html.js fixed template stuff :) 2024-12-27 02:17:48 +00:00
index.css regular 2024-12-24 22:44:26 +00:00
index.css.old forgot to push in a while 2024-12-15 20:09:42 +00:00
index.html fixed template stuff :) 2024-12-27 02:17:48 +00:00
index.html.bak dec17 2024-12-17 18:11:08 +00:00
index.nginx-debian.html regular 2024-12-24 22:44:26 +00:00
LICENSE added font color as black in css 2024-01-12 23:07:46 +00:00
package-lock.json regular 2024-12-24 22:44:26 +00:00
package.json regular 2024-12-24 22:44:26 +00:00
README.md Update README.md 2024-11-02 12:04:21 +01:00
robots.txt regular 2024-12-24 22:44:26 +00:00
sewage_scriptures.html regular 2024-12-24 22:44:26 +00:00

Website

This is all the code for the website (deadvey.com)

Node

The nodejs code that is executed in the background is in /node
You can execute the node code in crontab (crontab -e)
eg:

* * * * * node /var/www/html/node/makeblogs.js
* * * * * node /var/www/html/node/newsletter.js
* * * * * node /var/www/html/node/updatefeed.js

etc...

Newsletter

If you want to add members to the newsletter, I store a file as /etc/newsletter_members.js:

let members = ["member1@gmail.com","member2@outlook.com"]

if (typeof module !== 'undefined' && module.exports) {
	module.exports = members;
}

Apache2 and Node.js Integration

This project utilizes Apache2 as a reverse proxy to handle incoming web traffic and forward requests to a Node.js application.

Configuration

To set up Apache2 as a reverse proxy for your Node.js app:

  1. Start your Node.js application (/node/app.js) on port 8003. You can run the application in a tmux session using the command:
$ node app.js
  1. Edit the Apache configuration file /etc/apache2/sites-enabled/000-default.conf and add the following lines to forward requests to the Node.js app:
ProxyPass / http://localhost:8003/
  1. If you have other sites or applications running on Apache2 that should not be proxied to Node.js, you can add exceptions like this:
ProxyPass /wordpress !

Replace /wordpress with the appropriate path for your exception:

Testing

To verify that the Node.js application is running and accessible through Apache2, you can use the curl command:

$ curl http://localhost:8003

This should return the response from your Node.js application.

Feel free to customize and expand this documentation based on your specific project requirements and additional details you would like to include.