diff --git a/cfg/ngx/fw.op.fo.conf b/cfg/ngx/fw.op.fo.conf index 2f5e2b3..937edda 100644 --- a/cfg/ngx/fw.op.fo.conf +++ b/cfg/ngx/fw.op.fo.conf @@ -70,14 +70,15 @@ server { } # normal mode: /shortcode - location ~ ^/(\w+) { + location /\w+ { 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_http_version 1.1; proxy_method post; - proxy_pass http://postgrest/rpc/fwd/$1; + proxy_pass http://postgrest/rpc/fwd; + proxy_set_body $args; } }