blob: c8b04dbbad1c7fe26b9472d95794a037836efc64 (
plain) (
tree)
|
|
# Add a custom endpoint for passing requests to
# postgrest.
#
# SPDX-FileCopyrightText: 2024 Eilertsens Kodeknekkeri
# SPDX-FileCopyrightText: 2024 Harald Eilertsen
#
# SPDX-License-Identifier: CC0-1.0
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/;
}
|