Categories
DevOps GNU/Linux

Cheapest VPS Linux Server VM in South Africa

TLDR; As at October 2022 – Hostking.co.za has the cheapest Linux VPS – it is a smooth experience provisioning What company provides the cheapest Linux KVM based VPS (Virtual private server) in South Africa. What is a VPS? It is a virtual computer – running on a hypervisor (a bigger computer). It has its own […]

Categories
DevOps GNU/Linux Kong Security Server

Generate a letencrypt ssl certificate for kong api gateway

So you have installed kong and you are ready for it to go into production. Whoops, nossl certificate yet? It is important that you add it as credentials will be moving between your gateway and credentials could be acquired by any party in between the client and your server. But the standalone nginx plugin for […]

Categories
django python

Adding Time taken to respond to a request in the header of a Django Rest Framework Response

Ever wanted to add the time taken for a response to your API, so the client knows how long the server took to send a response? I first noticed this cool feature on AWX, a management platform for ansible playbooks. Their response headers looked like this: So I checked out their source code and copied […]

Categories
GNU/Linux Security Server ubuntu

Fail2Ban Custom filters and Testing Regex’s against existing Logs

Fail2ban is a tool that can automatically ban malicious bots trying to get into your server. Provided you set up filters and the ip address is logged you can use fail2ban with any application. fail2ban is built with python2.7 Create a filter, using a regular expression: In /etc/fail2ban/filter.d/my-custom-filter.conf: [Definition] failregex = ^www.example.com -.* “POST \/user\/register […]

Categories
ansible Continuous Integration git jenkins

Getting Jenkins to deploy with ansible using SSH Agent Forwarding

Your CI/CD tool needs access to code and server, for linting, testing and deploying. Setup up access on the various devices in a secure manner can be very time consuming. It is important to make use of available technology to make our lives easier. Jenkins needs access You will have created credentials for Jenkins – […]