Use a subfolder (path prefix) to serve Discourse with multiple servers sharing a domain

I have the same question like @xavivars, can someone help?

Now i struggle how to configure nginx to redirect all request to example.com/forum to the discourse docker and all other (Example Domain or example.com/app) to the nginx folder for the website.