Skip to content

Commit

Permalink
Made more stuff configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Lol3rrr committed Oct 30, 2023
1 parent ee38a72 commit c254d3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ async fn main() {
let s3_bucket = std::env::var("S3_BUCKET").unwrap();
let s3_access_key = std::env::var("S3_ACCESS_KEY").unwrap();
let s3_secret_key = std::env::var("S3_SECRET_KEY").unwrap();
let s3_endpoint = std::env::var("S3_ENDPOINT").unwrap();

#[cfg(not(debug_assertions))]
let prefix = "!";
Expand All @@ -73,7 +74,7 @@ async fn main() {
&s3_bucket,
s3::Region::Custom {
region: "default".to_string(),
endpoint: "https://ceph-s3.service.aachen.dc.consul:7480".to_string(),
endpoint: s3_endpoint.to_string(),
},
s3::creds::Credentials::new(
Some(&s3_access_key),
Expand Down

0 comments on commit c254d3b

Please sign in to comment.