Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
}

handle_path /api/* {
# The api does not compress its responses. A match is given because the default list of encode
# omits application/x-msgpack, the type of the largest response (the instrument records list).
encode {
zstd
gzip
match {
header Content-Type application/json*
header Content-Type application/x-msgpack*
}
}
reverse_proxy api
}

Expand Down
Loading