server { listen ${NGINX_PORT}; server_name ${NGINX_HOST} location / { root /usr/share/nginx/html; index index.html index.htm; try_files $uri /index.html =404; } location /api { proxy_pass ${NGINX_API_PROXY}; } }