ubergarm

sui generis, linux, python, devops, robotics, polyamory, data custodian

Nginx Reverse Proxy

2015-12-12 devops ubergarm
There’s more than one way to configure a server: some are complex, some simple, some static, and some dynamic. I’ve definitely become a fan of using nginx to reverse proxy Docker containers to a specified subdomain e.g. container.yourdomain.com. I spent a lot of time in the past tweaking nginx rewrite rules to give a dynamic feel while keeping the simplicity of a static config file. I recently discovered jwilder’s versitile docker-gen which listens on the Docker sock and updates config files based on the Go text/template language. Continue reading