https://github.com/frsource/nginx-proxy
Repository for dockerized nginx proxy deployable on VPS
https://github.com/frsource/nginx-proxy
Last synced: 4 months ago
JSON representation
Repository for dockerized nginx proxy deployable on VPS
- Host: GitHub
- URL: https://github.com/frsource/nginx-proxy
- Owner: FRSOURCE
- Created: 2023-10-21T21:19:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-26T21:53:27.000Z (10 months ago)
- Last Synced: 2025-07-26T21:58:03.257Z (10 months ago)
- Language: Dockerfile
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/nginx-proxy/nginx-proxy/blob/main/nginx.tmpl) into it and `nginx.tmpl` in this repo.
2. Apply changes from `nginx.tmpl.patch` into `nginx.tmpl`.
```bash
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.
3. Make other changes you need in `nginx.tmpl` file.
4. Generate a new `.patch` file.
```bash
diff -u nginx.new.tmpl nginx.tmpl > nginx.tmpl.patch
```
5. Now you can safely remove `nginx.new.tmpl` file.