Env variables not working
-
Hi. it seems that the Environment variables are not being set.
I've set various variables, none of which seem to be be applied. Example:
export FILE_STORAGE_UPLOAD_MAX_SIZE=125000000
export IFRAMELY_API_KEY="my-api-key"
Ref:
-
-
@shrey Just edit
/app/data/env.sh
and put inexport FILE_STORAGE_UPLOAD_MAX_SIZE=26214400
and restart the app. Same forIFRAMELY_API_KEY
. For iframely, you might have to take it up upstream as to why it doesn't work. Do you see any error in the logs? -
Just edit /app/data/env.sh and put in export FILE_STORAGE_UPLOAD_MAX_SIZE=26214400 and restart the app.
That's what my original 'bug' is ->
I've set various variables, none of which seem to be be applied. Example:
export FILE_STORAGE_UPLOAD_MAX_SIZE=125000000
export IFRAMELY_API_KEY="my-api-key"
-
@shrey Not 100% sure but I found https://github.com/outline/outline/blob/9e9fedaff1e72f93f61ca752b80368dd1f0cdf1a/.env.sample#L146
# Override the maximum size of document imports, could be required if you have # especially large Word documents with embedded imagery MAXIMUM_IMPORT_SIZE=5120000
Can you try setting
export MAXIMUM_IMPORT_SIZE=125000000
? -
-
@girish As per their docs, it's supposed to be optional:
https://docs.getoutline.com/s/hosting/doc/iframely-HwLF1EZ9mo#h-setupBut i did try adding a couple of URLs, as the exact URL is not explicitly mentioned anywhere (unless i couldn't find it yet).
Will check upstream for more info.
-
-
The default appears to be
https://iframe.ly
. https://github.com/outline/outline/blob/9e9fedaff1e72f93f61ca752b80368dd1f0cdf1a/server/env.ts#L685 . But at the same time, the plugin manifest says both vars are required - https://github.com/outline/outline/blob/9e9fedaff1e72f93f61ca752b80368dd1f0cdf1a/plugins/iframely/plugin.json#L4 . Best to check upstream. Let us know what you find! -
-