-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added nginx as a reverse proxy server
- Loading branch information
Showing
2 changed files
with
52 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
server { | ||
listen 8080; | ||
listen [::]:8080; | ||
server_name localhost; | ||
|
||
location /packs { | ||
proxy_pass http://coffee-packs:8080/packs; | ||
} | ||
|
||
location /coffee-shops { | ||
proxy_pass http://coffee-shops:8080/coffee-shops; | ||
} | ||
|
||
location /check-ins { | ||
proxy_pass http://check-ins:8080/check-ins; | ||
} | ||
|
||
location ~ ^/auth/(.*)$ { | ||
rewrite ^/auth/(.*)$ /$1 break; | ||
proxy_pass http://auth:8080; | ||
} | ||
|
||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
} | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
|
||
} | ||
|