This commit is contained in:
fro
2025-10-29 04:36:17 -05:00
parent 90cd13e20e
commit 6d7c74da53

View File

@@ -59,16 +59,6 @@ server {
error_page 404 = @myownredirect; error_page 404 = @myownredirect;
} }
# 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 # debug url, /dbg/string
location ~ ^/dbg/(\w+) { location ~ ^/dbg/(\w+) {
default_type application/json; default_type application/json;
@@ -79,4 +69,14 @@ server {
proxy_pass http://postgrest/rpc/fwd?p_shortcode=$1&p_dbg=true; proxy_pass http://postgrest/rpc/fwd?p_shortcode=$1&p_dbg=true;
} }
# 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;
}
} }