diff --git a/envoy/envoy.yaml b/envoy/envoy.yaml index 4b85404..4f7a236 100644 --- a/envoy/envoy.yaml +++ b/envoy/envoy.yaml @@ -10,6 +10,29 @@ static_resources: - name: envoy.filters.network.http_connection_manager typed_config: "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager + access_log: + - name: envoy.access_loggers.file + typed_config: + "@type": type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog + path: /dev/stdout + log_format: + json_format: + timestamp: "%START_TIME%" + method: "%REQ(:METHOD)%" + path: "%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%" + protocol: "%PROTOCOL%" + response_code: "%RESPONSE_CODE%" + grpc_status: "%GRPC_STATUS%" + content_type: "%REQ(content-type)%" + authority: "%REQ(:authority)%" + user_agent: "%REQ(user-agent)%" + x_forwarded_proto: "%REQ(x-forwarded-proto)%" + cf_ray: "%REQ(cf-ray)%" + cf_visitor: "%REQ(cf-visitor)%" + te: "%REQ(te)%" + upstream_host: "%UPSTREAM_HOST%" + upstream_cluster: "%UPSTREAM_CLUSTER%" + duration_ms: "%DURATION%" stat_prefix: ingress_http codec_type: AUTO route_config: @@ -35,6 +58,9 @@ static_resources: cluster: http_backend timeout: 60s http_filters: + - name: envoy.filters.http.grpc_web + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.http.grpc_web.v3.GrpcWeb - name: envoy.filters.http.router typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router