upstream network_inventory { server backend:8000; } server { listen 80; location /api/ { proxy_pass http://network_inventory; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_redirect off; } location /static/ { alias /home/app/backend/static/; } location / { root /usr/share/nginx/html/app/dist; index index.html index.htm; try_files $uri $uri/ /index.html; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } }