An open API service indexing awesome lists of open source software.

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

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.