diff options
author | Huabing Zhao <zhaohuabing@gmail.com> | 2018-07-30 09:26:51 +0000 |
---|---|---|
committer | Huabing Zhao <zhaohuabing@gmail.com> | 2018-07-30 09:36:56 +0000 |
commit | 2f305bed728c56aea6ac684457ff1d08007b8b90 (patch) | |
tree | 3667036549fcbfcf413866add23a440af6a582d7 /openresty-ext/src/assembly | |
parent | 78c426e548f473ff58268c82c26a0bf4906e13be (diff) |
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 <zhaohuabing@gmail.com>
Diffstat (limited to 'openresty-ext/src/assembly')
-rw-r--r-- | openresty-ext/src/assembly/resources/openresty/nginx/msb-enabled/msb.conf | 7 |
1 files changed, 4 insertions, 3 deletions
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 ""; |