I did exactly what you said, but it still doesn't work. I've been looking for a working solution and still haven't found a way to configure WebP with nginx.
I configured WP Fastest Cache plugin to serve WebP images but I'm still getting the "Serve images in next-gen formats" in Google Speed...