14 lines
445 B
Text
14 lines
445 B
Text
location /api/ {
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header Accept-Encoding "";
|
|
proxy_redirect off;
|
|
|
|
default_type application/json;
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
add_header Content-Location /api/$upstream_http_content_location;
|
|
proxy_set_header Connection "";
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_pass http://postgrest/;
|
|
}
|