w
This commit is contained in:
@@ -79,8 +79,14 @@ server {
|
|||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_method POST; # 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; # note, that if writing 'post' (lowercase) instead of 'POST' (uppercase), that will lead to the postgrest error "cannot use the post method on rpc"
|
||||||
set $query_string $args;
|
# set $query_string $args;
|
||||||
proxy_set_body $query_string;
|
# proxy_set_body $query_string;
|
||||||
|
|
||||||
|
#https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_body
|
||||||
|
|
||||||
|
proxy_set_body $request_body&p_dbg=true;
|
||||||
|
|
||||||
|
|
||||||
proxy_pass http://postgrest;
|
proxy_pass http://postgrest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user