Skip to content

Commit 2bdccaa

Browse files
committed
Small docs update
1 parent 020942b commit 2bdccaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

local-root/Caddyfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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
@@ -32,6 +32,7 @@
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

0 commit comments

Comments
 (0)