Giter Club home page Giter Club logo

nginx-reverse-proxy's Introduction

Documentation

Quickstart

Clone this repository in your directory.

$ git clone https://github.com/unicanova/nginx-reverse-proxy

To build docker image with nginx you have to execute in the parent folder docker build -t reponame:version .

$ docker build -t nginx_reverse_proxy:1 .

Push docker image in docker hub

$ docker login
$ docker push nginx_reverse_proxy:1

If necessary, edit docker-compose.yml file for your situation and write:

$ docker-compose up

Image will be created and container automatically launched.

Run container

The container can be launched in two ways:

  • a with the use of default values of environment variables.

  • b with redefinition of environment variables. The number of predefined environment variables is unlimited.

Environment variables

Variable name Variables description Default Value
NGINX_INTEGARATIONS_EPIC_ENCRYPT_URL host_name:port without http:// (port is optional) localhost:3001
NGINX_INTEGARATIONS_EPIC_URL host_name:port without http:// (port is optional) localhost:3001
NGINX_ROOT_URL host_name:port without http:// (port is optional) localhost:3001
NGINX_SUPERADMIN_URL host_name:port without http:// (port is optional) 127.0.0.1:3011
NGINX_SOCKETIO_URL host_name:port without http:// (port is optional) localhost:3001
NGINX_SSL_REWRITE_PORT ssl rewrite port 8080
NGINX_PROXY_PORT proxy pass port 80

Examples

a $ docker run nginx_reverse_proxy:1

b $ docker run -e NGINX_INTEGARATIONS_EPIC_ENCRYPT_URL=clinic:3334 -e NGINX_SSL_REWRITE_PORT=1111 nginx_reverse_proxy:1

nginx-reverse-proxy's People

Contributors

zedit avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.