You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2022/10/02 03:30:10 UTC

[GitHub] [shenyu] hlcen66 commented on issue #4025: Shenyu as a traffic gateway

hlcen66 commented on issue #4025:
URL: https://github.com/apache/shenyu/issues/4025#issuecomment-1264540601

   > If your `spring cloud gateway` is registered with `eureka`, then you can use `Proxy/springCloud` to connect to it , `new Selector`
   
   i had try, the spring cloud gateway as a spring cloud service can registry into the shenyu ,but a new problem produce..
   ![image](https://user-images.githubusercontent.com/81564338/193436585-96c24669-8737-44df-970c-46244d21938c.png)
   
   
   cloud gateway config :
   ![image](https://user-images.githubusercontent.com/81564338/193436516-2c0fc65b-754a-4144-b971-18dbaf8f8302.png)
   
   so , the url by shenyu proxy is :
   http://localhost:9195/springcloud/order-server/order/list
    
   but the gateway route url can not be a metadata .
   
   when i ask url :
   http://localhost:9195/springcloud/order-server/order/list
   
   the debug result:
   ![image](https://user-images.githubusercontent.com/81564338/193436540-04b9cf81-2784-4210-99eb-47385d3b66f9.png)
   
   ![image](https://user-images.githubusercontent.com/81564338/193436564-7eac2b95-54fe-4514-bc73-6655791a067c.png)
   
   so,how to forward the request to the gateway through shenyu, can you give me a demo? pls ,thanks
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org