How can one install a panel with discourse?

I’d follow @fefrei’s advice and do the simple installation that the discourse-setup script can handle. It’s not (yet?) intended for complex configurations such as yours.

If you want the web panel, install it after you’ve got Discourse up and running and have the panel run on some other port. Since it’s only for you, it won’t inconvenience anyone if the web panel is running on some other port. That will allow you to forego complex NGINX proxy shenanigans.