mirror of
https://github.com/wekan/wekan.git
synced 2025-04-24 14:08:31 -04:00
Add env setting to image resizer, part 1.
Thanks to xet7 !
This commit is contained in:
parent
21e0e68a02
commit
9066bd1a0f
1 changed files with 7 additions and 0 deletions
7
server/max-image-pixel.js
Normal file
7
server/max-image-pixel.js
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
Meteor.startup(() => {
|
||||||
|
if (process.env.MAX_IMAGE_PIXEL) {
|
||||||
|
Meteor.settings.public.MAX_IMAGE_PIXEL = process.env.MAX_IMAGE_PIXEL;
|
||||||
|
Meteor.settings.public.IMAGE_COMPRESS_RATIO =
|
||||||
|
process.env.IMAGE_COMPRESS_RATIO;
|
||||||
|
}
|
||||||
|
});
|
Loading…
Add table
Add a link
Reference in a new issue