aapje is baas tech

Recent Articles:

Use a deafult cert for nginx

If you use a service like cloudflare or sucuri you don't need a valid cert on the backend servers to do full ssl to backend. If you want full ssl to the server you need 2 things - self signed cert - nginx proxy to send traffic to port 80

Using this …



Update forked git repo from origional source

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream

3. Updating your fork from original repo to keep up with …


Map client header to upstream in nginx

Sometimes you want to route traffic to different endpoints based on a http header.

Avoiding if statements in the nginx config is the most important part here.

The example below is based on the user-agent header that is send from the client.

Test nginx conf to view traffic flow

# create …

Push ssh public key to lxc container

LXC is by far my favorite virtualization software for the desktop. I can spin up a base image to test something within seconds.

After starting there is one thing I'll always do: setup SSH key login, then it feels like any other machine to manage.

Lets go trough the steps …