blob: e1aff4a1fb6e2949c1aa496df86f96263dc2f6a9 [file] [log] [blame]
Adrià Vilanova Martínez4f5b8342021-09-03 22:30:53 +02001static_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ínez542a4a02021-09-06 18:11:05 +020031 - prefix: "chrome-extension://hpgakoecmgibigdbnljgecablpipbajb"
32 - prefix: "chrome-extension://memmklnkkhifmflmidnflfcdepamljef"
33 - prefix: "moz-extension://" # Mozilla extensions use random UUIDs.
Adrià Vilanova Martínez4f5b8342021-09-03 22:30:53 +020034 allow_methods: GET, PUT, DELETE, POST, OPTIONS
35 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
36 max_age: "1728000"
37 expose_headers: custom-header-1,grpc-status,grpc-message
38 http_filters:
39 - name: envoy.filters.http.grpc_web
40 - name: envoy.filters.http.cors
41 - name: envoy.filters.http.router
42 clusters:
43 - name: echo_service
44 connect_timeout: 3s
45 type: logical_dns
46 http2_protocol_options: {}
47 lb_policy: round_robin
48 dns_lookup_family: V4_ONLY
49 load_assignment:
50 cluster_name: cluster_0
51 endpoints:
52 - lb_endpoints:
53 - endpoint:
54 address:
55 socket_address:
56 address: server
57 port_value: 10000