diff --git a/cfg/ngx/fw.op.fo.conf b/cfg/ngx/fw.op.fo.conf index 21cbb34..b66e7c5 100644 --- a/cfg/ngx/fw.op.fo.conf +++ b/cfg/ngx/fw.op.fo.conf @@ -70,7 +70,7 @@ server { } # normal mode: /shortcode - location /\w+ { + location ~ ^/\w+ { #rewrite ^/your_endpoint(.*)$ /your_backend_endpoint?args=$args break; #rewrite ^ /your_backend_endpoint?args=$args break; default_type application/json; @@ -79,7 +79,8 @@ server { 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?args=$args; +# proxy_pass http://postgrest/rpc/fwd?args=$args; + proxy_pass http://postgrest/rpc/fwd; proxy_set_body $args; }