File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1515
1616 request_header @auth_cookie Authorization {http.request.cookie.access_token}
1717
18- reverse_proxy postgrest:3000 {
18+ reverse_proxy postgrest:3000 {
1919 header_up Accept-Profile {args[1]}
2020 header_up Content-Profile {args[1]}
2121 header_down -Access-Control-Allow-Origin
3232 # Rename PostgREST content-range header to avoid conflicts with varnish
3333 copy_response
3434 header X-Data-Range {rp.header.Content-Range}
35+ # Make content-range header compatible with RFC 7233 (we need to monitor PostgREST to see if it updates its behavior)
3536 header >Content-Range (.* ) "items $1"
3637 }
3738 }
@@ -106,6 +107,7 @@ localhost, macrostrat.local {
106107 # APIs for macrostrat and map-ingestion
107108 # These use PostgREST as a proxy to the database and
108109 # have headers set to default to a specific schema
110+ # TODO: strip cookies from non-auth requests to improve cache performance
109111 import schema-proxy /api/v3/macrostrat/pg macrostrat_api
110112 import schema-proxy /api/v3/map-ingestion/pg map_ingestion_api
111113
You can’t perform that action at this time.
0 commit comments