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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    App Custom Required Environment Vars

    Feature Requests
    7
    10
    304
    Loading More Posts
    • 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.
    • ?
      A Former User last edited by

      One thing that I think would help with some apps (drone being the one I was thinking of) is support for required environment variables when installing specific apps. Similar to how the ports are defined. That would let us specify the gitea URL and the OAuth info.

      The idea would be that someone would have to specify these values when installing and could modify them in the "location" section. What do you think @staff?

      murgero 1 Reply Last reply Reply Quote 8
      • murgero
        murgero App Dev @Guest last edited by

        @atridad I like the idea, and it removes the need to set them in an env file for example in the file manager.

        However, I think an "Environment Variables" Tab is needed instead.

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~
        Matrix: @murgero:urgero.org

        T ? 2 Replies Last reply Reply Quote 3
        • T
          thetomester13 App Dev @murgero last edited by

          I'm a fan of this idea. I think it makes sense for a of apps if the user would have visibility and the ability to update some ENV variables in a separate configuration tab. I could see this being something potentially defined in the CloudronManifest of an app.

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @murgero last edited by

            @murgero good point. An environment variables tab makes more sense.

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User @thetomester13 last edited by

              @thetomester13 absolutely. My hope is that the manifest could contain required variables. Anything else can be added by users afterwards but required vars need to be defined before an app can be installed and cannot be removed (but can be modified) after installation

              rmdes 1 Reply Last reply Reply Quote 1
              • rmdes
                rmdes @Guest last edited by

                This idea would be neat !!

                1 Reply Last reply Reply Quote 0
                • fbartels
                  fbartels App Dev last edited by

                  I think this is something that is quite nicely implemented in the Univention Appcenter concept. Maybe their implementation could serve as inspiration: https://docs.software-univention.de/app-provider-5.0.html#app-settings

                  1 Reply Last reply Reply Quote 1
                  • girish
                    girish Staff last edited by

                    There's API for this internally. The CLI tool uses this API to get/set env vars (cloudron env get/list/set/unset) . I guess we have to add a UI for this, but so far I think only drone needs this. I also think drone is not the best way to design an app, that it cannot start without a runner configuration, seems quite strange. This is not like database settings which are critical for an app to start.

                    But as always, app always wins and Cloudron will adapt to what's there as opposed to what we wish is there 🙂

                    ? 1 Reply Last reply Reply Quote 2
                    • ?
                      A Former User @girish last edited by

                      @girish Fair enough. Yeah in the case of Drone it does work without a runner (technically). More specifically, it needs a Gitea instance. It will "run" without a runner, but it will need a runner to actually execute any pipelines.

                      robi 1 Reply Last reply Reply Quote 0
                      • robi
                        robi @Guest last edited by

                        @atridad are there any Drone feature requests to include a single runner by default and if one needs more, to add them separately?

                        Life of Advanced Technology

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post
                        Powered by NodeBB