The Perfect Reverse Proxy (NGINX, SSL, WebUI Management)

Reverse Proxy.  I’ve been implementing reverse-proxy solutions in lab and in production for some time now, but I always come across the same problem; It’s not the easiest type of a system to manage, especially when there are SSL certificates involved. Now, before I started looking for an easy-to-manage SSL solution, I figured I’d find some sort of web interface for the NGINX config files and other basic server management. After some searching and testing, I decided on Ajenti. Ajenti is a python-based linux control panel that makes installing packages…

Read More

How to install NGINX, get a free SSL certificate, and configure a reverse proxy (part one)

This is part one of a two-part series for using NGINX as a reverse proxy for microservices on the same server or hosted on other servers/ports Click here for part two. In this article, we will: Install NGINX Install LetsEncrypt CertBot Obtain free SSL certificate Configure NGINX for SSL In part two, we will go over how to turn the basic HTTPS encrypted NGINX site into a reverse proxy for your other services. Installing NGINX and CertBot Auto We are using Ubuntu 14.04.5 Download certbot-auto to the /usr/local/sbin directory

Make sure…

Read More

Enable root login over SSH in Ubuntu 16.04 LTS

When I spin up a VM in the cloud like Vultr or Digital Ocean, I get root access. On the other hand, in AWS and Azure, I am stuck in a user account. Security and best practices aside, this is an inconsistency from a developer standpoint. I find that I need to log in with root access over SSH to my Ubuntu systems sometimes, and this is disabled in most cases. If you need to log in to root over SSH, here’s how: Edit the file:

Change

to…

Read More

How to: Fix acd_cli ERROR: sqlite3.DatabaseError: database disk image is malformed

I was using acd_cli, mounted to my file system last night, and picked up today to finish up. I navigated to the directory I mount ACD in and listed the contents.

Only to see an error that I haven’t seen yet (in my experience with ACD_CLI.) I thought maybe the mount went bad. It was throwing an  error when I tried to mount the file system again:

Since the local cache could be corrupt, let’s go ahead and clear it: Your cache directory should be .cache in your…

Read More

Use screen to maintain persistent SSH sessions after disconnecting and reconnecting

I find myself stuck in situations where I can’t really leave or close my shell session, but I have to go somewhere else, disconnect my internet, or otherwise lose shell access for some reason or another and unable to get back where I left off. Things like this happen sometimes, right? Or is it just me? The solution for this is screen Overview of Screen: Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells. Each virtual terminal provides the functions of the DEC…

Read More