[Question] How to configure the gateway for internal forwarding requests?
- Dominant language
- Java
- Stars
- 8.8k
- Forks
- 3.1k
- Avg merge
- 7d 1h
- Merged PRs (30d)
- 85
Description
### Question
Assuming the gateway's domain name is: xxx.gateway.com
And the corresponding business system domain name is: xxx.business.com
I want to complete a forwarding like this:
http://xxx.gateway.com/business/api/user/add should be forwarded to http://xxx.business.com/api/user/add
Requirement: It should not return a 302 redirect, but instead perform an internal forwarding at the gateway and then return the response.
Is there a way to implement such a configuration in Shenyu version 2.6.1? If so, please point it out. Thank you!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with ShenYu 2.6.1's gateway routing configuration and the distinction between internal forwarding and redirect. Check whether the requested path mapping can return the upstream response without a 302; done means a documented configuration or a confirmed limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100