2019-08-31 04:07:25 +05:00
|
|
|
/**
|
|
|
|
* Custom configuration
|
|
|
|
* (sails.config.custom)
|
|
|
|
*
|
|
|
|
* One-off settings specific to your application.
|
|
|
|
*
|
|
|
|
* For more information on custom configuration, visit:
|
|
|
|
* https://sailsjs.com/config/custom
|
|
|
|
*/
|
|
|
|
|
|
|
|
const path = require('path');
|
|
|
|
const sails = require('sails');
|
|
|
|
|
|
|
|
module.exports.custom = {
|
2019-11-05 18:01:42 +05:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Any other custom config this Sails app should use during development.
|
|
|
|
*
|
|
|
|
*/
|
2019-08-31 04:07:25 +05:00
|
|
|
|
|
|
|
baseUrl: process.env.BASE_URL,
|
|
|
|
|
2020-04-21 05:04:34 +05:00
|
|
|
userAvatarsPath: path.join(sails.config.paths.public, 'user-avatars'),
|
|
|
|
userAvatarsUrl: `${process.env.BASE_URL}/user-avatars`,
|
|
|
|
|
|
|
|
attachmentsPath: path.join(sails.config.paths.public, 'attachments'),
|
|
|
|
attachmentsUrl: `${process.env.BASE_URL}/attachments`,
|
2019-08-31 04:07:25 +05:00
|
|
|
};
|