server {
	server_name $NGINX_HOST;
    root /var/www;

	location ~ ^/api/doc$ {
		try_files $uri /index.html;
	}

	location /api/ {
		proxy_pass $APP_API_BASE/api/;
		proxy_intercept_errors on;
		add_header Access-Control-Allow-Origin *;
	}

	location / {
		try_files $uri /index.html;
	}
}