L1fe can you give us more details on that integration?
If the two apps are separate, I'd recommend hosting Flarum in a subdomain or subfolder.
If all you want to integrate is login, you can create a Flarum extension to add your main app as an oauth login provider, using the Passport extension for example.