Skip to content

Commit 5e6093c

Browse files
authored
add X-Forwarded-For in custom error template (#7892)
1 parent f0490cb commit 5e6093c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rootfs/etc/nginx/template/nginx.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,7 @@ stream {
896896
proxy_set_header X-Service-Name $service_name;
897897
proxy_set_header X-Service-Port $service_port;
898898
proxy_set_header X-Request-ID $req_id;
899+
proxy_set_header X-Forwarded-For $remote_addr;
899900
proxy_set_header Host $best_http_host;
900901

901902
set $proxy_upstream_name {{ $upstreamName | quote }};

0 commit comments

Comments
 (0)