Running Caddy Server as a service with systemd

In a previous blogpost I explained how to run Caddy (a brilliant and simple web server) as a service using Upstart. Systemd, however, replaced Upstart on most of the operating systems, so it makes more sense to have a guide for systemd. Caddy executable We don’t run Caddy as root to keep things as secure as […]

Configuring Jenkins on Ubuntu (for C++, GTest and Bitbucket)

 Installing wget -q -O – | sudo apt-key add – sudo sh -c ‘echo deb binary/ > /etc/apt/sources.list.d/jenkins.list’ sudo apt-get update $ sudo apt-get install jenkins Once installed, Jenkins will run at port 8080 on your server. Don’t forget to install a C/C++ compiler Don’t forget to install dependencies like QT, libc++ and […]

Caddy Server and WordPress (PHP-FPM)

Update: I added rewrite rules for WordPress permalinks to the Caddyfile. I also removed all unnecessary bits which are not needed anymore since Caddy now has built-in HTTPS support with Let’s Encrypt. Recently I discovered an amazing open source project: Caddy, a fully functional HTTP/2 webserver, written in Go. Caddy is a lightweight, general-purpose web server for […]

Creating a self-signed SSL certificate on Linux

The exact commands for generating a self-signed SSL certificate on Linux is something I always forget, so here they are: Generating a private key First you need to generate a private key. This private key will be the only key that can decrypt your SSL traffic. $ openssl genrsa -des3 -passout pass:x -out server.pass.key 2048 $ […]

Running Caddy Server as a service with Upstart

Update: Need to run Caddy as service with systemd? Checkout this blogpost! Recently I discovered a very promising webserver (written in Go) called Caddy. Now, Caddy is just an executable, which I wanted to turn into a service on my Ubuntu server. Upstart Running any executable as a service can be done using Upstart. Once […]

Backup your databases in Git

Storing backups of the database is import for any possible service on the internet. Git can be the right tool to backup databases. Like other version control systems, Git tracks the changes, and will only push the changes in files to the remote. So if one line in a 1 million database dump is changed, we don’t […]

Server migratie afgerond

Tot voor kort draaide ik FreeBSD 10 op mijn server, met Apache webserver. Vorige week ben ik overgestapt van FreeBSD naar Ubuntu Server 14, en heb ik Apache vervangen door Nginx. FreeBSD heeft altijd super stabiel gedraaid, maar met ports of firewalls werken is op BSD niet altijd een lachertje (zeker niet toen er IPv6 […]