server { listen 80; location /users { proxy_pass http://user_service:8000; } location /devices/ { proxy_pass http://device_service:8001; } }