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" |
Adrià Vilanova Martínez | 4d65500 | 2023-06-11 19:37:40 +0200 | [diff] [blame] | 31 | - prefix: "chrome-extension://hpgakoecmgibigdbnljgecablpipbajb" # Chrome stable |
| 32 | - prefix: "chrome-extension://memmklnkkhifmflmidnflfcdepamljef" # Chrome beta |
| 33 | - prefix: "chrome-extension://phefpbdhiknkamngjffpnebaemanmihf" # Chrome canary |
Adrià Vilanova Martínez | 542a4a0 | 2021-09-06 18:11:05 +0200 | [diff] [blame] | 34 | - prefix: "moz-extension://" # Mozilla extensions use random UUIDs. |
Adrià Vilanova Martínez | 4f5b834 | 2021-09-03 22:30:53 +0200 | [diff] [blame] | 35 | allow_methods: GET, PUT, DELETE, POST, OPTIONS |
| 36 | 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 |
| 37 | max_age: "1728000" |
| 38 | expose_headers: custom-header-1,grpc-status,grpc-message |
| 39 | http_filters: |
| 40 | - name: envoy.filters.http.grpc_web |
| 41 | - name: envoy.filters.http.cors |
| 42 | - name: envoy.filters.http.router |
| 43 | clusters: |
| 44 | - name: echo_service |
| 45 | connect_timeout: 3s |
| 46 | type: logical_dns |
| 47 | http2_protocol_options: {} |
| 48 | lb_policy: round_robin |
| 49 | dns_lookup_family: V4_ONLY |
| 50 | load_assignment: |
| 51 | cluster_name: cluster_0 |
| 52 | endpoints: |
| 53 | - lb_endpoints: |
| 54 | - endpoint: |
| 55 | address: |
| 56 | socket_address: |
| 57 | address: server |
| 58 | port_value: 10000 |