Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/developer/sdk/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class RustfsS3Example {
.region(Region.US_EAST_1) // 可写死,RustFS 不校验 region
.credentialsProvider(
StaticCredentialsProvider.create(
AwsBasicCredentials.create("rustfsadmin", "rustfssecret")
AwsBasicCredentials.create("rustfsadmin", "rustfsadmin")
)
)
.forcePathStyle(true) // 关键配置!RustFS 需启用 Path-Style
Expand Down Expand Up @@ -171,7 +171,7 @@ S3Presigner presigner = S3Presigner.builder()
.region(Region.US_EAST_1)
.credentialsProvider(
StaticCredentialsProvider.create(
AwsBasicCredentials.create("rustfsadmin", "rustfssecret")
AwsBasicCredentials.create("rustfsadmin", "rustfsadmin")
)
)
.build();
Expand Down
4 changes: 2 additions & 2 deletions docs/developer/sdk/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ npm install @aws-sdk/client-s3 @aws-sdk/s3-request-presigner
```
Endpoint: http://192.168.1.100:9000
Access Key: rustfsadmin
Secret Key: rustfssecret
Secret Key: rustfsadmin
```

---
Expand All @@ -44,7 +44,7 @@ const s3 = new S3Client({
region: "us-east-1", // 可随意填写
credentials: {
accessKeyId: "rustfsadmin",
secretAccessKey: "rustfssecret",
secretAccessKey: "rustfsadmin",
},
forcePathStyle: true, // 必须启用 Path-style 以兼容 RustFS
requestHandler: new NodeHttpHandler({
Expand Down
4 changes: 2 additions & 2 deletions docs/developer/sdk/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RustFS 是一款兼容 Amazon S3 协议的对象存储服务,支持通过 Pyth
```
Endpoint: http://192.168.1.100:9000
AccessKey: rustfsadmin
SecretKey: rustfssecret
SecretKey: rustfsadmin
```

### 2.2 安装 Boto3
Expand All @@ -59,7 +59,7 @@ s3 = boto3.client(
's3',
endpoint_url='http://192.168.1.100:9000',
aws_access_key_id='rustfsadmin',
aws_secret_access_key='rustfssecret',
aws_secret_access_key='rustfsadmin',
config=Config(signature_version='s3v4'),
region_name='us-east-1'
)
Expand Down