+ postgrest info (wip)

This commit is contained in:
fro
2025-10-29 03:11:03 -05:00
parent 03a580b120
commit 51f27dba7b

View File

@@ -22,6 +22,15 @@ server {
# return 301 $scheme://op.fo$request_uri;
#}
http {
# ...
# upstream configuration
upstream postgrest {
server localhost:3000;
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;
@@ -45,4 +54,16 @@ server {
location @myownredirect {
return 302 /;
}
# postgrest reverse proxy
location /rpc/ {
default_type application/json;
proxy_hide_header Content-Location;
add_header Content-Location /rpc/$upstream_http_content_location;
#proxy_set_header Connection "";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_pass http://postgrest/;
}
}