Skip to content

larryyangsen/lets-nginx-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

Let's Nginx

Docker Repository on Quay

Put browser-valid TLS termination in front of any Dockerized HTTP service with one command.

docker run --detach \
  --net=host \
  --name lets-nginx \
  --env EMAIL=me@email.com \
  --env DOMAIN=mydomain.horse \
  quay.io/patrickheneise/lets-nginx-node

Issues certificates from letsencrypt, installs them in nginx, and schedules a cron job to reissue them monthly.

⚡ To run unattended, this container accepts the letsencrypt terms of service on your behalf. Make sure that the subscriber agreement is acceptable to you before using this container. ⚡

Prerequisites

Before you begin, you'll need:

  1. A place to run Docker containers with a public IP.
  2. A domain name with an A record pointing to your cluster.

Usage

Have your node.js server/app/api running on port 3000 on the same machine. Options are:

  • -e EMAIL= your email address, used to register with letsencrypt.
  • -e DOMAIN= the domain name.

About

Push button, get TLS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%