-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api-envoy.yaml
79 lines (77 loc) · 2.61 KB
/
api-envoy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
port_value: 80
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
codec_type: auto
stat_prefix: ingress_http
access_log:
- name: envoy.access_loggers.file
typed_config:
"@type": type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog
path: "/var/log/access_log"
route_config:
name: local_route
virtual_hosts:
- name: api_service
domains:
- "*.cryptowise.ai"
routes:
- match:
prefix: "/v1"
route:
cluster: local_api
cors:
allow_origin_string_match:
prefix: "https://www.cryptowise.ai"
allow_credentials: true
allow_methods: "GET, HEAD, POST, PUT, DELETE, PATCH, OPTIONS"
allow_headers: "Authorization,Accept,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Host,Origin,Referer,User-Agent,X-Requested-With,X-CSRF-TOKEN"
http_filters:
- name: envoy.filters.http.cors
typed_config: {}
- name: envoy.filters.http.router
typed_config: {}
# - name: postgres_listener
# address:
# socket_address:
# address: 0.0.0.0
# port_value: 1999
# filter_chains:
# - filters:
# - name: envoy.filters.network.postgres_proxy
# typed_config:
# "@type": type.googleapis.com/envoy.extensions.filters.network.postgres_proxy.v3alpha.PostgresProxy
# stat_prefix: egress_postgres
# - name: envoy.filters.network.tcp_proxy
# typed_config:
# "@type": type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy
# stat_prefix: postgres_tcp
# cluster: postgres_cluster
clusters:
- name: local_api
connect_timeout: 10s
type: strict_dns
lb_policy: round_robin
# http2_protocol_options: {}
load_assignment:
cluster_name: local_api
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 8080
admin:
access_log_path: /dev/stdout
address:
socket_address:
address: 0.0.0.0
port_value: 8001