nginx-lets-encrypt-proxy
Go to file
Robert von Burg 5ff1bbe37c
Update README.md
2022-01-12 08:41:28 +01:00
build [Project] Initial Commit 2022-01-06 01:23:39 +01:00
nginx [Project] Initial Commit 2022-01-06 01:23:39 +01:00
README.md Update README.md 2022-01-12 08:41:28 +01:00
docker-compose.yml [Project] Initial Commit 2022-01-06 01:23:39 +01:00

README.md

nginx-lets-encrypt-proxy

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 https://github.com/NginxProxyManager

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

Inspirations:

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