我尝试将在端口8001上运行的vue.js服务重新路由到端口8080。 我的主机系统运行在其中运行vue服务器的VM,并且在单独的docker容器中,运行具有以下配置的envoy代理服务器。
admin:
access_log_path: /tmp/admin_access.log
address:
socket_address: { address: 0.0.0.0, port_value: 9901 }
static_resources:
listeners:
- name: listener_0
address:
socket_address: { address: 0.0.0.0, port_value: 8080 }
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
codec_type: auto
stat_prefix: ingress_http
route_config:
name: local_route
virtual_hosts:
- name: grpc_service_host
domains: ["*"]
routes:
- match: { prefix: "/" }
route:
cluster: vue_service
clusters:
- name: vue_service
connect_timeout: 5s
type: logical_dns
http2_protocol_options: {}
lb_policy: round_robin
hosts: [{ socket_address: { address: 192.168.1.125, port_value: 8001 }}]
当我直接访问192.168.1.125:8001时,我可以打开我的应用程序,但是当我使用端口8080时,过一会儿我得到stream timeout
。谁能对此有所了解,并告诉我哪里出了什么问题?