-
Ansible: Nginx w/ GeoIP2
I’ve been struggling on how to load balance using user location. Yes, you can easily do this using AWS Route 53 or another cloud load balancer. But this way is expensive. Nginx Plus can do it out of the box, but the Open Source version cannot. Hank Cheah has an amazing tutorial on how to…
-
Database Encryption
I wanted to post about a quick encryption function I created for use with ioRedis. Use it the same as you use redis.get and redis.set. But now it’s encrypted at rest.
-
Express Load Routes
I like to keep my index file as simple as possible. I thought I’d share a helper function to clean up your routes. My /routes folder looks like this: Now in your index.js file: It’s that easy!
-
Redis Cache Middleware Example
I thought I’d share my middleware for using ioredis as a cache simply. Then all you have to do for your routes is: Easy to reuse. Remember, use ioredis. It has built in promises.
-
Express JS Auth0
After searching forever on how to integrate authorization into my backend using Auth0. Finding that multiple sources quote different ways of doing this. I thought I’d share what works for me here. Now when you want to add authorization to your routes, all you need to do is this: Hopefully this helps someone save the…
-
RackNerd Nov, 11 2022 Deals!
Hey bros here’s the latest and greatest from RackNerd! Check out these deals! That’s right! PER YEAR! I’ve wrote a review on these guys not that long ago. They’re awesome! [11.11] DEAL #1 — 1.11 GB KVM VPS 1x vCPU Core11 GB PURE SSD RAID-10 Storage1.11 GB RAM3000GB Monthly Premium Bandwidth1Gbps Public Network PortFull Root…
-
Tor Snowflake Proxy
I’ve enabled Tor’s Snowflake Proxy on all servers in my network. What is a Snowflake Proxy? The Tor Project’s Snowflake is a system which helps users in censorious countries gain access to the wider internet (via Tor) despite blocking attempts by local ISPs or Governments. Given current geopolitics, it’s unsurprising currently seeing heavy usage from users in…
-
Tailscale — Private Networks in a Flash!
What is tailscale? Tailscale allows you to create a Point-to-Point Virtual Private Network between as many computers as you need within minutes! Simply setup an account and install the software and you can communicate between computers instantly, without having to port forward and open your network up to attack. I’ve used tailscale for about a…