Skip to content

jollege/ngprox1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker nginx reverse proxy

To start all relevant containers:

./run.sh

The nginx is set up to reverse proxy to game2048:8080 on this header: http://game2048/

And to reverse proxy to game:8080 on this header: http://game/

I resolved previous errors described in this issue and in this readme file: ./README.old01.md

Nginx config

The nginx image ellvtr/ngrout is based on the official nginx image and built from the Dockerfile in ./ngrout/Dockerfile - using ./ngrout/build.sh for quick image build.

It currently use the config in ./ngrout/config/nginx.conf and sites-available/app2 which has the following server block:

server {
  
  listen 80;
  server_name game2048;

  location / {
    proxy_pass "http://game2048:8080";
  }

}

server {
  
  listen 80;
  server_name game;

  location / {
    # Remember to refer to docker port, 
    # not host port which was 9999 in this case:
    proxy_pass "http://game:8080";
  }

}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published