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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Superset
  3. Missing editable .env for superset

Missing editable .env for superset

Scheduled Pinned Locked Moved Superset
6 Posts 2 Posters 1.4k Views 2 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.
  • V Offline
    V Offline
    Valexico
    wrote on last edited by Valexico
    #1

    Based on the documentation, the "embedded mode" require to add an environment variable:

    https://superset.apache.org/docs/configuration/networking-settings/#enabling-embedding-via-the-sdk

    SUPERSET_FEATURE_EMBEDDED_SUPERSET=true
    

    I found other sources online speaking of a config.py parameter, but this approach seems outdated and is not mentioned in the docs:

    https://medium.com/@nandwalritik/embed-superset-dashboard-react-843b0a60a31f

    FEATURE_FLAGS = {
        # Paste this along with other feature flag options
        "EMBEDDED_SUPERSET": True,
    }
    

    Unfortunately, env.sh is located in /app/pkg and is read-only

    https://git.cloudron.io/packages/superset-app/-/blob/main/start.sh?ref_type=heads#L17

    Could you change the packaging in order to be able to configure the environment variables ?

    Could be related to this post
    https://forum.cloudron.io/topic/12830/superset-public-access/5

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      have you seen https://docs.cloudron.io/apps/superset/#custom-config and does that work for this specific config variable?

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Valexico
        wrote on last edited by Valexico
        #3

        Hi @nebulon
        No it does not.

        This allows to make public URLs

        AUTH_ROLE_PUBLIC = 'Public'
        PUBLIC_ROLE_LIKE = 'Gamma'
        
        FEATURE_FLAGS = {
            'DASHBOARD_RBAC': True
        }
        

        But it does not permits to use the embed sdk
        https://www.npmjs.com/package/@superset-ui/embedded-sdk

        The embed SDK references a EMBEDDED_SUPERSET feature flag but the Superset documentation references a SUPERSET_FEATURE_EMBEDDED_SUPERSET=true environment variable

        I guess Superset docs is more accurate because I did try the feature flag and it does not activate the embed feature.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          Valexico
          wrote on last edited by
          #4

          My mistake, it actually seem to enable the feature. Let me check

          digi-studio 2025-03-28 at 16.07.18.png

          1 Reply Last reply
          0
          • V Offline
            V Offline
            Valexico
            wrote on last edited by
            #5

            So it seem the environment variable is not required.

            1 Reply Last reply
            0
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #6

              Great, so it worked out in the end using the config file?

              1 Reply Last reply
              0

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