my website files
Go to file
2024-11-19 17:37:26 +00:00
blog dunno 2024-11-18 21:52:13 +00:00
board maths practicer 2024-11-19 17:07:11 +00:00
comics bout to switch 2024-10-31 13:48:30 +00:00
error-pages added a few blogs and added film and game reviews 2024-07-11 21:52:23 +01:00
experiments added font color as black in css 2024-01-12 23:07:46 +00:00
images new header image and no margin 2024-08-26 13:05:01 +01:00
isthistheyearofthelinuxdesktop wordpress 2023-12-16 00:46:10 +00:00
links added a few blogs and added film and game reviews 2024-07-11 21:52:49 +01:00
maths maths practicer 2024-11-19 17:07:11 +00:00
music maths practicer 2024-11-19 17:07:11 +00:00
node latex stuff on maths 2024-11-19 17:37:26 +00:00
project commit 2024-11-17 21:53:51 +00:00
search markdown ** and * for bold and italics 2024-11-16 23:47:14 +00:00
strips I forgot to commit whoopsie 2024-05-26 16:32:18 +01:00
theunderland main page and blogs page are statically generated only 2024-11-15 17:24:21 +00:00
theunderlandcouk added font color as black in css 2024-01-12 23:07:46 +00:00
.gitignore idkstuff 2024-11-09 12:32:43 +00:00
dvdfilms.html added stuff idk 2024-08-26 01:27:13 +01:00
favicon.ico new blog and extended width from 500 to 750 2024-01-03 00:33:09 +00:00
html.js commit 2024-11-17 21:53:51 +00:00
index.css maths practicer 2024-11-19 17:07:11 +00:00
index.html commit 2024-11-17 21:53:51 +00:00
index.html.bak main page and blogs page are statically generated only 2024-11-15 17:24:21 +00:00
LICENSE added font color as black in css 2024-01-12 23:07:46 +00:00
package-lock.json made a newsletter 2024-11-02 01:03:32 +00:00
package.json made a newsletter 2024-11-02 01:03:32 +00:00
README.md Update README.md 2024-11-02 12:04:21 +01:00
sewage_scriptures.html Finally got dns working 2024-08-18 22:54:21 +01:00
template.js main page and blogs page are statically generated only 2024-11-15 17:24:21 +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.