server { listen 80; location / { root /usr/share/nginx/html; index index.html; } location /api/ { proxy_pass http://collector:8080/; } }