Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Outline
  3. Env variables not working

Env variables not working

Scheduled Pinned Locked Moved Outline
11 Posts 3 Posters 1.8k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nebulonN Offline
    nebulonN Offline
    nebulon
    Staff
    wrote on last edited by
    #2

    The latest package moved FILE_STORAGE_UPLOAD_MAX_SIZE to the user template so it does not get overwritten by start.sh anymore. IFRAMELY_API_KEY should have worked already.

    S 1 Reply Last reply
    0
    • girishG girish has marked this topic as solved on
    • nebulonN nebulon

      The latest package moved FILE_STORAGE_UPLOAD_MAX_SIZE to the user template so it does not get overwritten by start.sh anymore. IFRAMELY_API_KEY should have worked already.

      S Offline
      S Offline
      shrey
      wrote on last edited by shrey
      #3

      Hi @nebulon .

      What's meant by 'user template' here?
      Basically, how do I set the variable now?

      And IFRAMELY_API_KEY doesn't seem to work. Tried repeatedly.

      girishG 1 Reply Last reply
      0
      • S shrey

        Hi @nebulon .

        What's meant by 'user template' here?
        Basically, how do I set the variable now?

        And IFRAMELY_API_KEY doesn't seem to work. Tried repeatedly.

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #4

        @shrey Just edit /app/data/env.sh and put in export FILE_STORAGE_UPLOAD_MAX_SIZE=26214400 and restart the app. Same for IFRAMELY_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?

        S 1 Reply Last reply
        0
        • S Offline
          S Offline
          shrey
          wrote on last edited by
          #5

          @girish

          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"

          girishG 1 Reply Last reply
          0
          • girishG girish

            @shrey Just edit /app/data/env.sh and put in export FILE_STORAGE_UPLOAD_MAX_SIZE=26214400 and restart the app. Same for IFRAMELY_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?

            S Offline
            S Offline
            shrey
            wrote on last edited by
            #6

            @girish said in Env variables not working:

            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?

            There's no mention of "iframely" anywhere in the logs.

            1 Reply Last reply
            0
            • S shrey

              @girish

              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"

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #7

              @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 ?

              S 1 Reply Last reply
              2
              • girishG girish has marked this topic as unsolved on
              • girishG girish

                @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 ?

                S Offline
                S Offline
                shrey
                wrote on last edited by
                #8

                @girish this works...thanks!

                1 Reply Last reply
                1
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #9

                  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.

                  S 1 Reply Last reply
                  1
                  • girishG girish

                    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.

                    S Offline
                    S Offline
                    shrey
                    wrote on last edited by shrey
                    #10

                    @girish As per their docs, it's supposed to be optional:
                    https://docs.getoutline.com/s/hosting/doc/iframely-HwLF1EZ9mo#h-setup

                    But 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.

                    1 Reply Last reply
                    1
                    • S shrey has marked this topic as solved on
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #11

                      The default appears to behttps://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!

                      1 Reply Last reply
                      2
                      • girishG girish marked this topic as a regular topic on
                      • S superhua referenced this topic on
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search