/ + debug url
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user