This commit is contained in:
fro
2025-10-29 05:01:17 -05:00
parent 788acd0bc9
commit 4f9676e526

View File

@@ -59,7 +59,7 @@ server {
error_page 404 = @myownredirect;
}
# debug url, /dbg/string
# debug url: /dbg/string
location ~ ^/dbg/(\w+) {
default_type application/json;
proxy_hide_header Content-Location;
@@ -69,7 +69,7 @@ server {
proxy_pass http://postgrest/rpc/fwd?p_shortcode=$1&p_dbg=true;
}
# support /string url style
# normal mode: /shortcode
location ~ ^/(\w+) {
default_type application/json;
proxy_hide_header Content-Location;
@@ -77,7 +77,7 @@ 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?p_shortcode=$1;
proxy_pass http://postgrest/rpc/fwd;
}
}