Reverse proxy not working for Sonarr

For anyone else that comes across this, I managed to sort it out by running Sonarr as admin once to register all hostnames on the 8989 port. Also needed to declare the path as

reverse_proxy /sonarr* localhost:8989

as Sonarr returns everything with the trailing forward slash.