使者提供静态响应

除了路由和重定向,你还可以用Envoy提供静态响应。在这种情况下,我想提供一个禁止的响应(403) route_config: virtual_hosts: - name: picockpit domains:["picockpit.local:443", "picockpit.local"] routes: - 匹配。{ prefix:"/demo" } direct_response: status:403 body: inline_string:"Forbidden." - 匹配。{前缀:"/"} 路线。{cluster: target_picockpit}。它也可以为...

更多内容