my website files
Go to file
2024-11-02 10:32:56 +00:00
blog custom sender address and new blog 2024-11-02 10:12:47 +00:00
board added stuff idk 2024-08-26 01:27:13 +01: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
node custom sender address and new blog 2024-11-02 10:12:47 +00:00
project bout to switch 2024-10-31 13:48:30 +00:00
search custom sender address and new blog 2024-11-02 10:12:47 +00:00
strips I forgot to commit whoopsie 2024-05-26 16:32:18 +01:00
theunderland Updated Underland Wiki name annotations 2024-07-25 19:07:10 +01:00
theunderlandcouk added font color as black in css 2024-01-12 23:07:46 +00:00
.gitignore removed node_modules 2024-11-02 01:05:17 +00:00
commits.sh added recent commits histroy on home page and QOL upgrades 2024-01-08 18:07:16 +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 bout to switch 2024-10-31 13:48:30 +00:00
index.css bout to switch 2024-10-31 13:48:30 +00:00
index.html custom sender address and new blog 2024-11-02 10:12:47 +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 setup info on the readme 2024-11-02 10:32:56 +00:00
recent-commits.js added stuff idk 2024-08-26 01:27:13 +01:00
sewage_scriptures.html Finally got dns working 2024-08-18 22:54:21 +01:00
template.js made blog post on home page also a link 2024-05-26 20:01:34 +01: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; }

# 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<br/>
You can run /node/app.js in a tmux session for the website<br/>
You can add this to /etc/apache2/sites-enables/000-default.conf to forward to nodejs:<br/>
`ProxyPass / http://locahost:8003/`<br/>
And this if you want other sites that use apache2 not nodejs (as exceptions)<br/>
`ProxyPass /wordpress !`<br/>
You can also check the node page is running with `curl http://localhost:8003`<br/>