aboutsummaryrefslogtreecommitdiffstats
path: root/rs
diff options
context:
space:
mode:
Diffstat (limited to 'rs')
-rw-r--r--rs/server/Cargo.toml2
-rw-r--r--rs/server/src/main.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/rs/server/Cargo.toml b/rs/server/Cargo.toml
index c437597..a784bf8 100644
--- a/rs/server/Cargo.toml
+++ b/rs/server/Cargo.toml
@@ -4,7 +4,7 @@ version = "0.1.0"
4edition = "2021" 4edition = "2021"
5 5
6[dependencies] 6[dependencies]
7aws-config = { version = "1.1.2", features = ["behavior-version-latest"] } 7aws-config = { version = "1.1.2" }
8aws-sdk-s3 = "1.12.0" 8aws-sdk-s3 = "1.12.0"
9axum = "0.7" 9axum = "0.7"
10base64 = "0.21" 10base64 = "0.21"
diff --git a/rs/server/src/main.rs b/rs/server/src/main.rs
index 76e447d..2051b62 100644
--- a/rs/server/src/main.rs
+++ b/rs/server/src/main.rs
@@ -149,6 +149,7 @@ fn get_s3_client(env: &Env) -> Result<aws_sdk_s3::Client, std::io::Error> {
149 "gitolfs3-env", 149 "gitolfs3-env",
150 ); 150 );
151 let config = aws_config::SdkConfig::builder() 151 let config = aws_config::SdkConfig::builder()
152 .behavior_version(aws_config::BehaviorVersion::latest())
152 .endpoint_url(&env.s3_endpoint) 153 .endpoint_url(&env.s3_endpoint)
153 .credentials_provider(aws_sdk_s3::config::SharedCredentialsProvider::new( 154 .credentials_provider(aws_sdk_s3::config::SharedCredentialsProvider::new(
154 credentials, 155 credentials,