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.
-
Create
nginx.new.tmpl
file and copy overnginx.tmpl
content fromnginx-proxy
repo into it andnginx.tmpl
in this repo. -
Apply changes from
nginx.tmpl.patch
intonginx.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 ofnginx-proxy
. In such case you'll need to apply those changes manually.
-
Make other changes you need in
nginx.tmpl
file. -
Generate a new
.patch
file.
diff -u nginx.new.tmpl nginx.tmpl > nginx.tmpl.patch
- Now you can safely remove
nginx.new.tmpl
file.