Discourse installed in UNRAID Ubuntu Server VM behind NPM reverse proxy not resolving hostname

No, I would look at creating a completely bespoke docker compose (or whatever you are using for orchestration) and use a custom dockerfile for discourse.