Skip to content

Instantly share code, notes, and snippets.

@drpauldixon
drpauldixon / openvpn.md
Created November 18, 2015 18:48
Run OpenVPN via Docker on port 8443
@drpauldixon
drpauldixon / osx_haproxy.md
Created June 7, 2016 12:15
Compile HAProxy with Lua and OpenSSL on Mac OS X

Compile HAProxy with Lua and OpenSSL on Mac OS X

Tags: osx haproxy lua openssl

Compile LUA:

mkdir ~/oss
wget http://www.lua.org/ftp/lua-5.3.3.tar.gz
tar xvzf lua-5.3.3.tar.gz
#!/bin/bash
# Collect netstat statistics. Run via jenkins or cron.
TIMESTAMP=$(date +%a.%b.%d.%Y_%Hh.%Mm.%Ss)
DAY=$(date +%A)
LOGDIR=~/netstat_logs
# Create log directory if not alreay there
if [ ! -d $LOGDIR ]
then
@drpauldixon
drpauldixon / munin-serve-el7.md
Last active February 27, 2019 13:13
How to install Munin with Dynamic graphs under CentOS 7

How to install Munin with Dynamic graphs under CentOS 7

You'll need to install EPEL.

yum -y install epel-release

Install some packages:

@drpauldixon
drpauldixon / README.md
Last active January 24, 2024 15:56
Nomad + Traefik http and https routing

Notes for anyone struggling to get Traefik routing on both http and https with Nomad

By default, Traefik routes on the http interface only. We want to route on both http and https interfaces (front ends).

The trick is to create 2x services in the Nomad Job for the application - one for http and one for https. See example Traefik/MyApp jobs below.

I also had trouble getting traefik to use custom TLS certs - the trick was to put those into the dynamic config for traefik.

Tags: nomad traefik https tls ingress router