In this article, we will explain how you need to set up various applications or libraries so that they can use our Object Storage.
In the examples, 00112233445566778899
is the access key and AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTt
is the secret key; you can find both in the Object Storage management console. If necessary, examplebucket
stands for the name of the bucket.
s3cmd
Enter the following in ~/.s3cfg:
[default]
access_key = 00112233445566778899
secret_key = AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTt
host_base = s3-fra.23m.com
host_bucket = %(bucket)s.s3-fra.23m.com
website_endpoint = http://%(bucket)s.s3-website-fra.23m.com/
restic
export RESTIC_REPOSITORY="s3:https://s3-fra.23m.com/examplebucket"
export AWS_ACCESS_KEY_ID="00112233445566778899"
export AWS_SECRET_ACCESS_KEY="AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTt"
rclone
Enter the following in the rclone.conf configuration file:
[23m]
type = s3
provider = Other
access_key_id = 00112233445566778899
secret_access_key = AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTt
endpoint = https://s3-fra.23m.com
chunk_size = 5Mi
Buckets can then be addressed via the 23m:
prefix.
s3fs-fuse
First, the access data must be entered in ~/.passwd-s3fs:
00112233445566778899:AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTt
(chmod 600 ~/.passwd-s3fs
).
The bucket can then be integrated into the file system as follows:
s3fs examplebucket ./mnt -o host="https://s3-fra.23m.com"
AWS SDK for JavaScript v3
Example code:
const { S3Client } = require("@aws-sdk/client-s3");
const s3Config = {
credentials: {
accessKeyId: '00112233445566778899',
secretAccessKey: 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTt',
},
region: 'fra',
endpoint: 'https://s3-fra.23m.com',
};
const s3Client = new S3Client(s3Config);