server { listen 3003; server_name localhost; location / { root /usr/share/nginx/html; index index.html index.htm; } location /events { proxy_buffering off; proxy_pass http://127.0.0.1:3002/events; } }