can register proxy by host
evlon opened this issue ยท 3 comments
evlon commented
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the feature has not already been requested
๐ Feature Proposal
can register proxy by host name
Motivation
No response
Example
server.register(proxy, {
upstream: 'http://single-signon.example.com',
host: 'xxx.sample.com', // optional
http2: false // optional
})
mcollina commented
This would be a good feature to add!
Would you like to send a Pull Request to address this issue? Remember to add unit tests.
Check out https://www.fastify.io/docs/latest/Routes/#constraints, it's likely just about passing this to the routes.
climba03003 commented