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