From 2f305bed728c56aea6ac684457ff1d08007b8b90 Mon Sep 17 00:00:00 2001 From: Huabing Zhao Date: Mon, 30 Jul 2018 09:26:51 +0000 Subject: Pass service name as host HTTP header to sidecar In order to let the envoy sidcar find the correct service provider, the service name must be provided in the 'host' HTTP header. Change-Id: I242ba5cea50a0914f2d5a691efae64c72d970bb3 Issue-ID: MSB-228 Signed-off-by: Huabing Zhao --- .../src/assembly/resources/openresty/nginx/msb-enabled/msb.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'openresty-ext/src/assembly') diff --git a/openresty-ext/src/assembly/resources/openresty/nginx/msb-enabled/msb.conf b/openresty-ext/src/assembly/resources/openresty/nginx/msb-enabled/msb.conf index 3e7038b..bb98462 100644 --- a/openresty-ext/src/assembly/resources/openresty/nginx/msb-enabled/msb.conf +++ b/openresty-ext/src/assembly/resources/openresty/nginx/msb-enabled/msb.conf @@ -15,16 +15,17 @@ # #the maximum allowed size of the client request body,current 10G -client_max_body_size 10240m; +client_max_body_size 10240m; client_body_buffer_size 128k; - + #set conf for proxy pass proxy_connect_timeout 5s; proxy_read_timeout 1200s; proxy_send_timeout 1200s; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -proxy_set_header Host $host:$server_port; +#proxy_set_header Host $host:$server_port; +proxy_set_header Host $svc_name; proxy_buffers 4 16k; proxy_http_version 1.1; proxy_set_header Connection ""; -- cgit 1.2.3-korg