From 239262905aca9c3f0997a64657ebefe022c6b34f Mon Sep 17 00:00:00 2001 From: fro Date: Tue, 4 Nov 2025 19:25:03 -0500 Subject: [PATCH] / + 'proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;' this is needed, to get client ip --- cfg/ngx/wa.fo.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfg/ngx/wa.fo.conf b/cfg/ngx/wa.fo.conf index 616ba96..abfbb20 100644 --- a/cfg/ngx/wa.fo.conf +++ b/cfg/ngx/wa.fo.conf @@ -70,7 +70,7 @@ server { default_type application/json; proxy_hide_header Content-Location; add_header Content-Location /rpc/$upstream_http_content_location; - #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # used to get client ip proxy_http_version 1.1; # note, that if writing 'post' (lowercase) instead of 'POST' (uppercase), that will lead to the postgrest error "cannot use the post method on rpc" proxy_method POST;