Alex Zhang
Alex Zhang
Well, I don't see we need to add another service discovery module as its core capability is same to the existing one.
As for the compatibility, just adding another field: `clusters`, which is an array is enough. One can configure it via configuring a bunch of kubernetes clusters via the `clusters` array...
@aichibazhang Could you describe your demands more elaborately? If I am correct, you want to use different status codes under different situations?
> 我的意思是,response-write 是否可以支持多个错误码的改写,array类型,比如这样的json > > ``` > "response-rewrite": [{ > "body": "{\"code\":\"ok\",\"message\":\"new json body\"}", > "headers": { > "X-Server-id": 3, > "X-Server-status": "on", > "X-Server-balancer_addr": "$balancer_ip:$balancer_port" > }, > "vars":[...
@aichibazhang Would you like to write a discussion mail to [email protected]? Let's discuss about the proposal.
Change the pseudo `:authority` should be same to change the host header. Try to use `proxy-rewrite` plugin.
Or just using the `upstream_host` field in Upstream object.
> > Or just using the `upstream_host` field in Upstream object. > > This should only change the `host`, not the `:authority` ? `: authority` should be identical with `host`,...
@ipanocloud May I know the use case or pain point that you're facing? Currently, it's indeed that only one `regex_uri` is supported .
@Hazel6869 Please take a look when you have time.