ZeroFS might help here to put the actual storage on an S3 compatible object store? https://github.com/Barre/zerofs
Dual-licensed under the GNU AGPL v3 (fully featured, for open source use)
and a commercial license.
but the commercial license link https://www.zerofs.net/licensing is a 404 page