Compare commits

..

1 commit

Author SHA1 Message Date
63029c8b8e
chore: migrate to object_store
Move to the more modern and maintained object_store
library to access generic buckets.

We should be able also to do streaming of files now,
and proceed by implementing paginated results for listings
if we want.

Fixes #1.
2025-08-03 20:57:23 +02:00
4 changed files with 28 additions and 2 deletions

2
Cargo.lock generated
View file

@ -2960,7 +2960,7 @@ dependencies = [
[[package]] [[package]]
name = "serves3" name = "serves3"
version = "1.1.2" version = "1.2.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"bytes", "bytes",

View file

@ -3,7 +3,7 @@
[package] [package]
name = "serves3" name = "serves3"
version = "1.1.2" version = "1.2.0"
authors = ["Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>"] authors = ["Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>"]
description = "A very simple proxy to browse files from private S3 buckets" description = "A very simple proxy to browse files from private S3 buckets"

21
Containerfile Normal file
View file

@ -0,0 +1,21 @@
# SPDX-FileCopyrightText: © Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>
# SPDX-License-Identifier: EUPL-1.2
FROM docker.io/rust:1.88-alpine3.20
RUN apk --no-cache add musl-dev && \
cargo install --path .
FROM docker.io/alpine:3.20
COPY --from=rust /usr/local/cargo/bin/serves3 /usr/bin/serves3
EXPOSE 8000
ENV ROCKET_PROFILE=production
# This env variable should be in the format:
# {endpoint=<endpoint>,region=<region>,access_key_id=<access_key_id>,secret_access_key=<secret_access_key>}
ENV ROCKET_S3_BUCKET={endpoint=,region=,access_key_id=,secret_access_key=}
CMD ["serves3"]

View file

@ -109,6 +109,11 @@ serves3
# Changelog # Changelog
## 1.2.0
* Migrate to [object_store](https://crates.io/crates/object_store)
* Bump dependencies
## 1.1.2 ## 1.1.2
* Bump dependencies, adopt Rust 2024 edition * Bump dependencies, adopt Rust 2024 edition