diff --git a/.env.example b/.env.example index 7d9062a48..dd29f21f1 100644 --- a/.env.example +++ b/.env.example @@ -37,6 +37,7 @@ EXPRESS_PORT=8081 #FS_S3_ACCESS_KEY_ID= #FS_S3_SECRET_ACCESS_KEY= #FS_S3_REGION= +#FS_S3_ENDPOINT= # Google Storage #FS_GOOGLE_CLOUD_BUCKET= diff --git a/src/config.ts b/src/config.ts index a3c3f4eb0..66d233d7e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -75,6 +75,8 @@ export default { accessKeyId: getStringOption(process.env.FS_S3_ACCESS_KEY_ID, globalAwsIamAccessKeyId), apiVersion: '2006-03-01', region: getStringOption(process.env.FS_S3_REGION, globalAwsRegion), + endpoint: process.env.FS_S3_ENDPOINT, + s3ForcePathStyle: process.env.FS_S3_ENDPOINT != null, secretAccessKey: getStringOption( process.env.FS_S3_SECRET_ACCESS_KEY, globalAwsIamAccessKeySecret,