|
| 1 | +/** |
| 2 | + * File Upload Settings |
| 3 | + * (sails.config.uploads) |
| 4 | + * |
| 5 | + * These options tell Sails where (and how) to store uploaded files. |
| 6 | + * |
| 7 | + * > This file is mainly useful for configuring how file uploads in your |
| 8 | + * > work during development; for example, when lifting on your laptop. |
| 9 | + * > For recommended production settings, see `config/env/production.js` |
| 10 | + * |
| 11 | + * For all available options, see: |
| 12 | + * https://sailsjs.com/config/uploads |
| 13 | + */ |
| 14 | + |
| 15 | +module.exports.uploads = { |
| 16 | + |
| 17 | + /*************************************************************************** |
| 18 | + * * |
| 19 | + * Sails apps upload and download to the local disk filesystem by default, * |
| 20 | + * using a built-in filesystem adapter called `skipper-disk`. This feature * |
| 21 | + * is mainly intended for convenience during development since, in * |
| 22 | + * production, many apps will opt to use a different approach for storing * |
| 23 | + * uploaded files, such as Amazon S3, Azure, or GridFS. * |
| 24 | + * * |
| 25 | + * Most of the time, the following options should not be changed. * |
| 26 | + * (Instead, you might want to have a look at `config/env/production.js`.) * |
| 27 | + * * |
| 28 | + ***************************************************************************/ |
| 29 | + // bucket: '',// The name of the S3 bucket where software installers will be stored. |
| 30 | + // region: '', // The region where the S3 bucket is located. |
| 31 | + // secret: '', // The secret for the S3 bucket where unassigned software installers will be stored. |
| 32 | + // bucketWithPostfix: '', // This value should be set to the same value as the bucket unless the files are stored in a folder in the S3 bucket. In that case, this value needs to be set to `{bucket name}{folder name}` e.g., unassigned-software-installers/staging |
| 33 | + // prefixForFileDeletion: '', // Only required if the software installers are stored in a folder in the S3 bucket. The name of the folder where the software installers are stored in the S3 bucket with a trailing slash. e.g., staging/ |
| 34 | + |
| 35 | +}; |
0 commit comments