This commit is contained in:
fro
2025-10-29 06:05:08 -05:00
parent 0ad7172061
commit 43189e3f76

View File

@@ -79,8 +79,14 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
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"
set $query_string $args;
proxy_set_body $query_string;
# set $query_string $args;
# 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;
}