Replies: 1 comment
-
the feature can be implemented through affine config. storages: {
avatar: {
// provider: 'fs',
// bucket: 'avatars',
provider: 'aws-s3',
bucket: 'affine-blobs',
publicLinkFactory: key => `/api/avatars/${key}`,
},
blob: {
// provider: 'fs',
// bucket: 'blobs',
provider: 'aws-s3',
bucket: 'affine-blobs',
},
} open the // /* AWS S3 Plugin */
// /* Enable if you choose to store workspace blobs or user avatars in AWS S3 Storage Service */
AFFiNE.plugins.use('aws-s3', {
credentials: {
accessKeyId: '',
secretAccessKey: '',
}) close the //this.client = new S3Client({ region: 'auto', ...config });
this.client = new S3Client({ ...config }); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
API?
or .event?
Beta Was this translation helpful? Give feedback.
All reactions