Skip to content

Instantly share code, notes, and snippets.

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@Glendragon
Glendragon / README.md
Last active May 27, 2021 17:44
Docker Nginx Proxy + LetsEncrypt with examples

Nginx Proxy Containers

This approach lets you do a few really powerful things:

  1. Give non-SSL enabled applications SSL capabilities using a proxy
  2. Automate signing up and renewing LetsEncrypt certificates
  3. Allow multiple containers to exist on a single host and not worry about configuring a webserver

Use docker-letsencrypt-nginx-proxy with nginx-proxy in a single docker-compose.yml. Here's what it's doing:

  • The host ports 80 and 443 go into the nginx-proxy container
  • The volumes certs, vhostd, and html are persistent (important for certs!)