nginx and api