@thanzex What’s the problem you’re actually trying to solve? Why have a Laravel app, if it’s just going to hand off requests to something else?
May 29, 2024
4
Level 1
Proxy requests to other service
Hi! I'm fairly new to Laravel, I am wondering if it would be possible to expose a route to proxy traffic to another service outside of Laravel. Ideally I could still get authn/authz but don't have to recreate all the interface to the external service.
The proxy should handle HTTP and Websocket requests alike
Laravel
┌───────────┐
│ │
┌──────┐ │ ┌───────┐ │
│ User ├─┬───┤ │ Route │ │ Service
└──────┘ │ │ └───────┘ │ ┌───────────┐
▲ │ │ │ │ │
│ │ │ ┌───────┐ │ │ │
│ └───┼─┤ Proxy ├─┼─────►│ │
└─────┼─┤ ├─┼──────┤ │
│ └───────┘ │ │ │
│ │ └───────────┘
└───────────┘
I could not find anything related to this and the only discussion in this forum that touches this problem is from 6 years ago with no reply.
Please or to participate in this conversation.