blob: f6f31bdaaa34a0ca13153a7b99021307f5616e15 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
# Add a custom endpoint for passing requests to
# postgrest.
location /api/ {
default_type application/json;
proxy_hide_header Content-Location;
add_header Content-Location /api$upstream_http_content_location;
proxy_set_header Connection "";
proxy_http_version 1.1;
proxy_pass http://postgrest:3000/;
}
|