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