|
@@ -11,15 +11,15 @@ class configGET extends Route {
|
|
config: {
|
|
config: {
|
|
serviceName: process.env.SERVICE_NAME,
|
|
serviceName: process.env.SERVICE_NAME,
|
|
uploadFolder: process.env.UPLOAD_FOLDER,
|
|
uploadFolder: process.env.UPLOAD_FOLDER,
|
|
- linksPerAlbum: process.env.MAX_LINKS_PER_ALBUM,
|
|
|
|
- maxUploadSize: process.env.MAX_SIZE,
|
|
|
|
- filenameLength: process.env.GENERATED_FILENAME_LENGTH,
|
|
|
|
- albumLinkLength: process.env.GENERATED_ALBUM_LENGTH,
|
|
|
|
- generateThumbnails: process.env.GENERATE_THUMBNAILS,
|
|
|
|
- generateZips: process.env.GENERATE_ZIPS,
|
|
|
|
- stripExif: process.env.STRIP_EXIF,
|
|
|
|
- publicMode: process.env.PUBLIC_MODE,
|
|
|
|
- enableAccounts: process.env.USER_ACCOUNTS
|
|
|
|
|
|
+ linksPerAlbum: parseInt(process.env.MAX_LINKS_PER_ALBUM, 10),
|
|
|
|
+ maxUploadSize: parseInt(process.env.MAX_SIZE, 10),
|
|
|
|
+ filenameLength: parseInt(process.env.GENERATED_FILENAME_LENGTH, 10),
|
|
|
|
+ albumLinkLength: parseInt(process.env.GENERATED_ALBUM_LENGTH, 10),
|
|
|
|
+ generateThumbnails: process.env.GENERATE_THUMBNAILS == 'true' ? true : false,
|
|
|
|
+ generateZips: process.env.GENERATE_ZIPS == 'true' ? true : false,
|
|
|
|
+ stripExif: process.env.STRIP_EXIF == 'true' ? true : false,
|
|
|
|
+ publicMode: process.env.PUBLIC_MODE == 'true' ? true : false,
|
|
|
|
+ enableAccounts: process.env.USER_ACCOUNTS == 'true' ? true : false
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|