Skip to content

sandeshshrestha/nginx-letsencrypt

Repository files navigation

NGINX reverse proxy with letsencrypt

It does the following..

Example

mkdir -p $HOME/nginx-test/config
mkdir -p $HOME/nginx-test/nginx-config
mkdir -p $HOME/nginx-test/certificate
echo '
[
   {
      "url": "example.com",
      "proxy": "https://192.168.0.10:8080",
      "email": "mail@example.com",
      "https": false,
      "extra_config": "\\n#Some extra config\\n"
   }
]' > $HOME/nginx-test/config/nginx.json
docker run -d -p 80:80 -p 443:443 -v $HOME/nginx-test/config:/app/config -v $HOME/nginx-test/nginx-config:/etc/nginx/generated.conf.d -v $HOME/nginx-test/certificate:/etc/letsencrypt sandeshshrestha/nginx-letsencrypt

/app/config/nginx.json

Config string that describe proxy rules

  • url
    • Public url
    • DNS of this url should be forwarded to this container
  • proxy
    • IP and port of container hosing the website
  • email
    • Email used while calling certbot to create SSL certificate
  • https
    • If true it will auto create SSL certificate
    • If false it will only setup proxy for http://example.com
  • extra_config
    • Some text that will be added on nginx conf.
    • It must be valid nginx confix syntax

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy