Last active
April 4, 2017 16:45
-
-
Save sivabudh/e377fed4c59f4e8721a990a8e885a048 to your computer and use it in GitHub Desktop.
Microservices with NGINX
This file contains hidden or 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
# | |
# NGINX config for microservices | |
# Tested with nginx/1.10.3 | |
# | |
worker_processes 5; | |
events { | |
worker_connections 4096; | |
} | |
http { | |
server { | |
listen 8080; | |
server_name blah.com; | |
# First service | |
location /products { | |
proxy_pass http://127.0.0.1:8001; | |
} | |
# Second service | |
location /stuff { | |
proxy_pass http://127.0.0.1:8002; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment