jrtechs 61a471debb | 4 years ago | |
---|---|---|
.github/ISSUE_TEMPLATE | 6 years ago | |
.idea | 6 years ago | |
admin | 5 years ago | |
blog | 4 years ago | |
blogContent | 4 years ago | |
docs | 4 years ago | |
includes | 4 years ago | |
photography | 5 years ago | |
routes | 4 years ago | |
sites | 5 years ago | |
templates | 4 years ago | |
utils | 4 years ago | |
.gitignore | 5 years ago | |
CODE_OF_CONDUCT.md | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 4 years ago | |
config.json | 4 years ago | |
docker-compose.yml | 5 years ago | |
jrtechs.service | 5 years ago | |
optimizeImages.sh | 6 years ago | |
package.json | 4 years ago | |
previewer.js | 5 years ago | |
robots.txt | 6 years ago | |
run | 5 years ago | |
server.js | 5 years ago | |
sitemap.txt | 4 years ago |
This is a personal blog where I write about everything from projects to tutorials on sophisticated machine learning algorithms. If you want to stay up to date with new posts, subscribe to my RSS feed.
This project is a custom express application that uses pandoc to render latex/markdown files as HTML pages. This site has its very own admin portal to manage posts and downloads.
Installing the node-dependencies is as easy as running the npn install command:
npm install
All configurations are currentl found in the config.json file. In this file you specify things like port, sql connection, etc.
There is a provided bash script that will run the application
chmod +x run.sh
./run.sh
For deployment I used a Nginx proxy to expose the node application running on port 8000 to port 80. This proxy is necessary because you can't run a node application as port 80 unless you are root, which would be a security vulnerability.
Unless otherwise stated, everything in this repository can be assumed to fall under these two licenses depending on what type of file it is.
All code, scripts, or other technical / programmatic items in this repo are assumed fall under the Mozilla Public License 2.0 unless otherwise stated.
All guides, scripts, posts, or otherwise non-programmatic content in this repo is assumed to fall under the Creative Commons Attribution-ShareAlike 4.0 International unless otherwise stated.
- express
- express-session
- mysql
- sanitizer
- promise
- highlight
- crypto
- remarkable
- markdown
- highlight.js
- compression
- memory-cache --save
- request
- nodemailer
- nodemailer-smtp-transport
- whiskers
- node-pandoc
The color scheme has been changing a lot recently.
current: top 2C3E50 secondary 498FBE highlight:00F0E1, 88BAFF
Stuff for automated image compression
apt-get install jpegoptim
apt-get install optipng
./optimizeImages.sh
#jrtechs.net.conf
server
{
listen 80;
server_name www.jrtechs.net jrtechs.net;
# redirect http requests to https
return 301 https://jrtechs.net$request_uri;
}
server
{
listen 443 ssl http2;
server_name jrtechs.net;
ssl_certificate /etc/letsencrypt/live/jrtechs.net/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/jrtechs.net/privkey.pem;
location / {
proxy_pass http://localhost:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
As I develop more projects I would like an easy way to add and host them on my website without having to create another sub-domain and generate more ssl certs. I simply want the project site to be accessible under https://jrtechs.net/project_name.