https://github.com/andreaskoch/reverse-proxy
A Nginx based reverse proxy or one or more sites on one ip address as a docker image
https://github.com/andreaskoch/reverse-proxy
Last synced: 2 months ago
JSON representation
A Nginx based reverse proxy or one or more sites on one ip address as a docker image
- Host: GitHub
- URL: https://github.com/andreaskoch/reverse-proxy
- Owner: andreaskoch
- License: mit
- Created: 2014-10-24T20:48:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-01T15:22:23.000Z (over 11 years ago)
- Last Synced: 2025-01-16T19:05:37.764Z (over 1 year ago)
- Language: Shell
- Size: 172 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Reverse Proxy
A Nginx based reverse proxy or one or more sites on one ip address as a docker image.
## Buid
```bash
sudo docker build -t=andreaskoch/reverse-proxy .
```
## Run
To run the reverse proxy you must link a directory with Nginx virtual host configuration files into the `/etc/nginx/conf.d` folder of container:
```bash
docker run -d -p 80:80 -p 443:443 -v "$(pwd)/sample-nginx-conf:/etc/nginx/conf.d" andreaskoch/reverse-proxy
```
## Configuration
You can add nginx configuration files to the mapped folder - they will be reloaded every 60 seconds.
A simple virtual host configuration could for example look something like this:
```
server {
listen 80 default;
location / {
proxy_buffering off;
proxy_pass http://example.com;
}
}
```