feat: Re-stream static files from S3, introduce protected static files
This commit is contained in:
@@ -38,8 +38,7 @@ module.exports = {
|
||||
if (sails.helpers.utils.isPreloadedFaviconExists(inputs.record.data.hostname)) {
|
||||
faviconUrl = `${sails.config.custom.baseUrl}/preloaded-favicons/${faviconFilename}`;
|
||||
} else {
|
||||
const fileManager = sails.hooks['file-manager'].getInstance();
|
||||
faviconUrl = `${fileManager.buildUrl(`${sails.config.custom.faviconsPathSegment}/${faviconFilename}`)}`;
|
||||
faviconUrl = `${sails.config.custom.baseUrl}/favicons/${faviconFilename}`;
|
||||
}
|
||||
|
||||
data = {
|
||||
|
||||
Reference in New Issue
Block a user