Closed
Description
Describe the bug
I have configured httproute.spec.rules.filters.requestHeaderModifier.add.name and httproute.spec.rules.filters.requestHeaderModifier.add.value in httproute. The values are X-Real-IP and remote_addr, respectively. httproute.spec.rules.filters.type is RequestHeaderModifier. However, in the nginx-gateway Pod, remote_addr is recognized as proxy_set_header X-Real-IP "${x_real_ip_header_var}remote_addr"; how can I configure it to recognize as proxy_set_header X-Real-IP "$remote_addr"? I have tried configuring httproute.spec.rules.filters.requestHeaderModifier.add.value as $remote_addr, but it causes all proxy_set_header commands in the nginx-gateway to not be recognized. How can I resolve this issue?
Metadata
Metadata
Assignees
Labels
No labels