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 – https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add – sudo sh -c ‘echo deb http://pkg.jenkins-ci.org/debian 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 […]