1.2 KiB


This proxy is incomplete. It currently parses the configuration and reloads nginx, but let's encrypt obtaining is not yet implemented. DON'T USE, or send a PR =)

Currently i have moved to

This is a docker container as a nginx proxy with Let's Encrypt and virtual hosts support.


Create necessary directories and files:

mkdir ssl
mkdir nginx/modules-enabled
mkdir letsencrypt/
touch letsencrypt/configured-domains

Create the dhparams:

openssl dhparam -out ssl/dhparam.pem 2048

And then add your virtual hosts in nginx/sites-enabled, but make sure to use the following certificates:

ssl_certificate /etc/letsencrypt/snake-oil/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/snake-oil/private-key.pem;

The internal scripts will then replace this and reload nginx when necessary.

Now add your domains as separate lines in letsencrypt/configured-domains.

Now build the image:

docker-compose build --pull

And then start:

docker-compose up