Skip to content

Commit

Permalink
released
Browse files Browse the repository at this point in the history
  • Loading branch information
小林杏理 committed Oct 5, 2019
1 parent 7f8c9ff commit 783c992
Show file tree
Hide file tree
Showing 38 changed files with 7,087 additions and 356 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
local/
*.pem
.DS_Store
49 changes: 33 additions & 16 deletions backend/proxy/envoy.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
admin:
access_log_path: /tmp/admin_access.log
address:
socket_address: { address: 0.0.0.0, port_value: 9901 }
static_resources:
listeners:
- name: listener_0
address:
socket_address: { address: 0.0.0.0, port_value: 8080 }
- address:
socket_address:
address: 0.0.0.0
port_value: 8080
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
codec_type: auto
access_log:
- name: envoy.file_access_log
config:
path: "/dev/stdout"
codec_type: AUTO
stat_prefix: ingress_http
route_config:
name: local_route
virtual_hosts:
- name: local_service
domains: ["*"]
- name: http
domains:
- "*"
routes:
- match: { prefix: "/" }
- match:
prefix: "/"
route:
cluster: message_service
max_grpc_timeout: 0s
cluster: backend-server
max_grpc_timeout: 60s
cors:
allow_origin:
- "*"
Expand All @@ -32,12 +35,26 @@ static_resources:
expose_headers: custom-header-1,grpc-status,grpc-message
http_filters:
- name: envoy.grpc_web
- name: envoy.cors
- name: envoy.health_check
config:
pass_through_mode: false
headers:
- name: ":path"
exact_match: "/healthz"
- name: "x-envoy-livenessprobe"
exact_match: "healthz"
- name: envoy.router
config: {}
clusters:
- name: message_service
- name: backend-server
connect_timeout: 0.25s
type: logical_dns
http2_protocol_options: {}
lb_policy: round_robin
hosts: [{ socket_address: { address: host.docker.internal, port_value: 9090 }}]
hosts: [{ socket_address: { address: host.docker.internal, port_value: 9090 }}]
admin:
access_log_path: "/dev/stdout"
address:
socket_address:
address: 127.0.0.1
port_value: 8090
4 changes: 3 additions & 1 deletion backend/server/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ coverage
.npm

# Optional REPL history
.node_repl_history
.node_repl_history

config/
Loading

0 comments on commit 783c992

Please sign in to comment.