summaryrefslogtreecommitdiff
path: root/build/nginx/nginx.api.server.conf
blob: 5dd88a4bbad3909409b8a987275fa09d9e12f824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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/;
}