Proxy write requests to the backblaze s3 apis

This commit is contained in:
Charlotte 🦝 Delenk 2022-11-17 10:04:34 +01:00 committed by Charlotte
parent c4fde68135
commit 6c1b79f6ec

View file

@ -70,6 +70,24 @@ in {
method GET
}
@writeRequests {
method POST PUT PATCH DELETE
}
reverse_proxy @writeRequests {
to https://cache-chir-rs.s3.us-west-000.backblazeb2.com
header_up Host {upstream_hostport}
header_down -Set-Cookie
header_down Access-Control-Allow-Origin '*'
header_down -Access-Control-Allow-Methods
header_down Access-Control-Allow-Headers
header_up -Set-Cookie
transport http {
versions 1.1 2 3
}
}
reverse_proxy @getOnly {
@error status 500 404
handle_response @error {