From 90cd13e20ea7ba1feae0e2255da306d62c9becd8 Mon Sep 17 00:00:00 2001 From: fro Date: Wed, 29 Oct 2025 04:35:07 -0500 Subject: [PATCH] / + debug url --- cfg/ngx/fw.op.fo.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cfg/ngx/fw.op.fo.conf b/cfg/ngx/fw.op.fo.conf index 6e4dd6f..79233df 100644 --- a/cfg/ngx/fw.op.fo.conf +++ b/cfg/ngx/fw.op.fo.conf @@ -61,6 +61,16 @@ server { # support /string url style 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_pass http://postgrest/rpc/fwd?p_shortcode=$1; + } + + # debug url, /dbg/string + location ~ ^/dbg/(\w+) { default_type application/json; proxy_hide_header Content-Location; add_header Content-Location /rpc/$upstream_http_content_location;