403 forbiden on admin page

No, nginx has never been used.
Pi-hole has always shipped with the lighttpd package.

The upcoming Pi-hole v6 will drop that package dependency and ship with an embedded civetweb instead.

If you didn't consciously install nginx yourself, then it likely was pulled as a dependency by some other software that you've installed on your system.