Created
September 25, 2019 08:15
-
-
Save chumaknadya/bcb339c7c868646d47e5adbe736c524c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static_resources: | |
listeners: | |
- address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 8099 | |
filter_chains: | |
- filters: | |
- name: envoy.http_connection_manager | |
config: | |
codec_type: auto | |
stat_prefix: ingress_http | |
route_config: | |
name: local_route | |
virtual_hosts: | |
- name: backend | |
domains: | |
- "*" | |
routes: | |
- match: | |
prefix: "/api/v2/barong" | |
route: | |
cluster: barong | |
prefix_rewrite: "/api/v2/" | |
# Oka, so this block indicates the api routes to applogic | |
- match: | |
# This line will be overritten to | |
prefix: "/api/v2/nodelogic" | |
route: | |
cluster: nodelogic | |
# Envoy does all this magic for us | |
# this line, this is what container will get, for node JS version it should be just /api | |
prefix_rewrite: "/api" | |
- match: | |
prefix: "/api/v2/applogic" | |
route: | |
cluster: applogic | |
prefix_rewrite: "/api/v2/" | |
- match: | |
prefix: "/api/v2/peatio" | |
route: | |
cluster: peatio | |
prefix_rewrite: "/api/v2/" | |
- match: | |
prefix: "/admin" | |
route: | |
cluster: peatio | |
- match: | |
prefix: "/assets/" | |
route: | |
cluster: peatio | |
- match: | |
prefix: "/api/v2/ranger/public" | |
route: | |
cluster: ranger | |
prefix_rewrite: "/" | |
upgrade_configs: | |
upgrade_type: "websocket" | |
- match: | |
prefix: "/api/v2/ranger/private" | |
route: | |
cluster: ranger | |
prefix_rewrite: "/" | |
upgrade_configs: | |
upgrade_type: "websocket" | |
http_filters: | |
- name: envoy.ext_authz | |
config: | |
with_request_body: | |
max_request_bytes: 90000000 | |
allow_partial_message: true | |
http_service: | |
authorization_request: | |
allowed_headers: | |
patterns: | |
- exact: cookie | |
- exact: x-auth-apikey | |
- exact: x-auth-nonce | |
- exact: x-auth-signature | |
- exact: user-agent | |
- exact: x-forwarded-host | |
- exact: x-forwarded-for | |
- exact: from | |
- exact: x-forwarded-proto | |
- exact: proxy-authorization | |
authorization_response: | |
allowed_upstream_headers: | |
patterns: | |
- exact: authorization | |
allowed_client_headers: | |
patterns: | |
- exact: set-cookie | |
- exact: proxy-authenticate | |
- exact: www-authenticate | |
- exact: location | |
path_prefix: "/api/v2/auth" | |
server_uri: | |
cluster: barong | |
timeout: 1.000s | |
uri: http://barong:8001 | |
- name: envoy.router | |
config: {} | |
perConnectionBufferLimitBytes: 10000000 | |
clusters: | |
- name: barong | |
connect_timeout: 0.25s | |
type: strict_dns | |
lb_policy: round_robin | |
hosts: | |
- socket_address: | |
address: barong | |
port_value: 8001 | |
- name: nodelogic | |
connect_timeout: 0.25s | |
type: strict_dns | |
lb_policy: round_robin | |
hosts: | |
- socket_address: | |
address: nodelogic | |
port_value: 8081 | |
- name: applogic | |
connect_timeout: 0.25s | |
type: strict_dns | |
lb_policy: round_robin | |
hosts: | |
- socket_address: | |
address: applogic | |
port_value: 8082 | |
- name: peatio | |
connect_timeout: 0.25s | |
type: strict_dns | |
lb_policy: round_robin | |
hosts: | |
- socket_address: | |
address: peatio | |
port_value: 8000 | |
- name: ranger | |
connect_timeout: 0.25s | |
type: strict_dns | |
lb_policy: round_robin | |
hosts: | |
- socket_address: | |
address: ranger | |
port_value: 8080 | |
admin: | |
access_log_path: "/dev/null" | |
address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 9099 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment