https://github.com/phistrom/nginx_django_proxy
Dockerfile for an nginx container that can take an upstream as a command line argument
https://github.com/phistrom/nginx_django_proxy
Last synced: 4 months ago
JSON representation
Dockerfile for an nginx container that can take an upstream as a command line argument
- Host: GitHub
- URL: https://github.com/phistrom/nginx_django_proxy
- Owner: phistrom
- Created: 2016-04-27T15:09:14.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-28T00:21:16.000Z (about 9 years ago)
- Last Synced: 2024-12-27T00:12:00.648Z (5 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NGINX Django Proxy
## Usage
Forward requests on port 80 to an upstream host called "my_upstream_server" listening on port 8000.`docker run -p 80:80 phistrom/nginx_django_proxy my_upstream_server:8000`
or to specify a port other than 80 to listen on
`docker run -p 9090:9090 phistrom/nginx_django_proxy my_upstream_server:8000 `**`9090`**
## Why is it called Django?
It can forward to any upstream really, I just put the proxy settings for a Django upstream. You can change the **default.conf** file in this repo to be something else. There are placeholders in the file that get replaced by `sed` in the entrypoint script.