server { listen ${NGINX_PORT}; location / { root /usr/share/nginx/html; index index.html index.htm; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ api\/?.* { proxy_pass http://backend:5000; } }