Nginx as an API Gateway
1 min read
- Authors
- Name
- Vijaykumar Rajendran
- @vijayrajendran_

Table of Contents
Nginx as an API Gateway
Route to Microservices
upstream auth_service {
server auth:3000;
}
upstream user_service {
server users:3001;
}
upstream product_service {
server products:3002;
}
server {
location /auth {
proxy_pass http://auth_service;
}
location /users {
proxy_pass http://user_service;
}
location /products {
proxy_pass http://product_service;
}
}
Microservices routed!