Skip to content

Instantly share code, notes, and snippets.

@sivabudh
Last active April 4, 2017 16:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sivabudh/e377fed4c59f4e8721a990a8e885a048 to your computer and use it in GitHub Desktop.
Microservices with NGINX
#
# 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