Pi-hole v6 comes with an embedded webserver, so neither lighttpd
nor PHP are used anymore, as mentioned in Introducing Pi-hole v6.
This also affects the API endpoint, which in turn may have to be reflected in your nginx configuration.
Other nginx users have shared their adopted configuration, see e.g. Can't get v6 webinterface behind nginx reverse proxy to work - #4 by stefan.