This commit is contained in:
fro
2025-10-29 05:16:48 -05:00
parent 3458444083
commit e3d20cc450

View File

@@ -70,7 +70,7 @@ server {
} }
# normal mode: /shortcode # normal mode: /shortcode
location /\w+ { location ~ ^/\w+ {
#rewrite ^/your_endpoint(.*)$ /your_backend_endpoint?args=$args break; #rewrite ^/your_endpoint(.*)$ /your_backend_endpoint?args=$args break;
#rewrite ^ /your_backend_endpoint?args=$args break; #rewrite ^ /your_backend_endpoint?args=$args break;
default_type application/json; default_type application/json;
@@ -79,7 +79,8 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_method post; proxy_method post;
proxy_pass http://postgrest/rpc/fwd?args=$args; # proxy_pass http://postgrest/rpc/fwd?args=$args;
proxy_pass http://postgrest/rpc/fwd;
proxy_set_body $args; proxy_set_body $args;
} }