Instantly share code, notes, and snippets.

Embed
What would you like to do?
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