Skip to content

Commit 2f2e2b3

Browse files
authored
Merge pull request #74 from wobcom/feat/force_path_style_config_flag
feat: Adding configration option to force_path_style for S3 connections
2 parents fb230da + 8e3c88d commit 2f2e2b3

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

vicky/config.example.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ access_key_id = "minio"
1313
secret_access_key = "aichudiKohr6aithi4ahh3aeng2eL7xo"
1414
region = "us-east-1"
1515
log_bucket = "vicky-logs"
16+
force_path_style = false
1617

1718
[default.oidc_config]
1819
well_known_uri = ""

vicky/src/bin/vicky/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub struct S3Config {
1212
secret_access_key: String,
1313
pub region: String,
1414
pub log_bucket: String,
15+
pub force_path_style: bool,
1516
}
1617

1718
#[derive(Deserialize)]
@@ -69,6 +70,7 @@ impl S3Config {
6970

7071
aws_sdk_s3::Config::builder()
7172
.behavior_version(BehaviorVersion::v2025_08_07())
73+
.force_path_style(self.force_path_style)
7274
.endpoint_url(&self.endpoint)
7375
.credentials_provider(self.credentials())
7476
.region(Region::new(self.region.clone()))

0 commit comments

Comments
 (0)