Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 960 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 960 Bytes

nginx-proxy

Repository for dockerized nginx proxy deployable on VPS

Important When updating nginx-proxy, always update nginx.tmpl file as well. Instructions on how to do that are in "Working with nginx.tmpl" section below.

Working with nginx.tmpl

  1. Create nginx.new.tmpl file and copy over nginx.tmpl content from nginx-proxy repo into it and nginx.tmpl in this repo.

  2. Apply changes from nginx.tmpl.patch into nginx.tmpl.

patch nginx.tmpl nginx.tmpl.patch

If the command above does not work it's possible that contents of nginx.tmpl have changed in new version of nginx-proxy. In such case you'll need to apply those changes manually.

  1. Make other changes you need in nginx.tmpl file.

  2. Generate a new .patch file.

diff -u nginx.new.tmpl nginx.tmpl > nginx.tmpl.patch
  1. Now you can safely remove nginx.new.tmpl file.