Adrià Vilanova MartÃnez | 4f5b834 | 2021-09-03 22:30:53 +0200 | [diff] [blame^] | 1 | static_resources: |
| 2 | listeners: |
| 3 | - name: listener_0 |
| 4 | address: |
| 5 | socket_address: { address: 0.0.0.0, port_value: 8081 } |
| 6 | filter_chains: |
| 7 | - filters: |
| 8 | - name: envoy.filters.network.http_connection_manager |
| 9 | typed_config: |
| 10 | "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager |
| 11 | use_remote_address: false # NOTE: This is because in our production setup we're using a reverse proxy. |
| 12 | # If you're exposing your backend to the public, set this to true. |
| 13 | codec_type: auto |
| 14 | stat_prefix: ingress_http |
| 15 | route_config: |
| 16 | name: local_route |
| 17 | virtual_hosts: |
| 18 | - name: local_service |
| 19 | domains: ["*"] |
| 20 | routes: |
| 21 | - match: { prefix: "/" } |
| 22 | route: |
| 23 | cluster: echo_service |
| 24 | timeout: 0s |
| 25 | max_stream_duration: |
| 26 | grpc_timeout_header_max: 0s |
| 27 | cors: |
| 28 | allow_origin_string_match: |
| 29 | - prefix: "https://twpt-dashboard.avm99963.com" |
| 30 | - prefix: "https://twpt-dashboard-frontend.web.app" |
| 31 | allow_methods: GET, PUT, DELETE, POST, OPTIONS |
| 32 | allow_headers: keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,custom-header-1,x-accept-content-transfer-encoding,x-accept-response-streaming,x-user-agent,x-grpc-web,grpc-timeout,authorization |
| 33 | max_age: "1728000" |
| 34 | expose_headers: custom-header-1,grpc-status,grpc-message |
| 35 | http_filters: |
| 36 | - name: envoy.filters.http.grpc_web |
| 37 | - name: envoy.filters.http.cors |
| 38 | - name: envoy.filters.http.router |
| 39 | clusters: |
| 40 | - name: echo_service |
| 41 | connect_timeout: 3s |
| 42 | type: logical_dns |
| 43 | http2_protocol_options: {} |
| 44 | lb_policy: round_robin |
| 45 | dns_lookup_family: V4_ONLY |
| 46 | load_assignment: |
| 47 | cluster_name: cluster_0 |
| 48 | endpoints: |
| 49 | - lb_endpoints: |
| 50 | - endpoint: |
| 51 | address: |
| 52 | socket_address: |
| 53 | address: server |
| 54 | port_value: 10000 |