mirror of
https://github.com/MAGICGrants/strapi.git
synced 2026-01-10 13:18:07 -05:00
25 lines
569 B
TypeScript
25 lines
569 B
TypeScript
export default ({ env }) => ({
|
|
// ...
|
|
upload: {
|
|
config: {
|
|
provider: "aws-s3",
|
|
providerOptions: {
|
|
credentials: {
|
|
accessKeyId: env("HETZNER_BUCKET_ACCESS_KEY_ID"),
|
|
secretAccessKey: env("HETZNER_BUCKET_ACCESS_SECRET"),
|
|
},
|
|
region: env("HETZNER_BUCKET_REGION"),
|
|
endpoint: env("HETZNER_BUCKET_ENDPOINT"),
|
|
params: {
|
|
Bucket: env("HETZNER_BUCKET_NAME"),
|
|
},
|
|
},
|
|
actionOptions: {
|
|
upload: {},
|
|
uploadStream: {},
|
|
delete: {},
|
|
},
|
|
},
|
|
},
|
|
});
|