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:
-
G girish has marked this topic as solved on
-
The latest package moved
FILE_STORAGE_UPLOAD_MAX_SIZEto the user template so it does not get overwritten bystart.shanymore.IFRAMELY_API_KEYshould have worked already. -
Hi @nebulon .
What's meant by 'user template' here?
Basically, how do I set the variable now?And
IFRAMELY_API_KEYdoesn't seem to work. Tried repeatedly.@shrey Just edit
/app/data/env.shand put inexport FILE_STORAGE_UPLOAD_MAX_SIZE=26214400and 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 Just edit
/app/data/env.shand put inexport FILE_STORAGE_UPLOAD_MAX_SIZE=26214400and 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=5120000Can you try setting
export MAXIMUM_IMPORT_SIZE=125000000? -
G girish has marked this topic as unsolved on
-
@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=5120000Can you try setting
export MAXIMUM_IMPORT_SIZE=125000000? -
Also, for iframely in the same sample file linked above, there are two variables:
# Iframely API config # IFRAMELY_URL= # IFRAMELY_API_KEY=Maybe both are needed.
@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.
-
S shrey has marked this topic as solved on
-
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! -
G girish marked this topic as a regular topic on
-
S superhua referenced this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login