See How to setup nginx as a reverse proxy for plex? for a working example
Though, this is a subdomain solution. Context path related rules will likely be more complicacted. You have to live with a broken remote access display, as it uses ip instead of the domainname to perform it’s availability check.