Hello, I am developing an application that has a main application (
example.com) which (amongst other things) has auth and links to per-user subdomains that proxy to other servers. The main site operates as a standard adonis app, routes, etc.
Then, a user can click a link in that appp, and can redirect users to their specific device, so for example:
User A can access
device2.example.com but NOT
User B can access only
All based upon their ownership of that device.
When they hit that page, it needs to be a completely transparent proxy to another IP/URL/endpoint that is dynamically assigned, some of which have websockets.
What I am trying to figure out is the best way of tackling this. I am not sure middleware is the best approach, whether to override something in the