/ + 'proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;'
this is needed, to get client ip
This commit is contained in:
@@ -70,7 +70,7 @@ server {
|
|||||||
default_type application/json;
|
default_type application/json;
|
||||||
proxy_hide_header Content-Location;
|
proxy_hide_header Content-Location;
|
||||||
add_header Content-Location /rpc/$upstream_http_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;
|
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"
|
# 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;
|
proxy_method POST;
|
||||||
|
|||||||
Reference in New Issue
Block a user