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. Feature Requests
  3. App Custom Required Environment Vars

App Custom Required Environment Vars

Scheduled Pinned Locked Moved Solved Feature Requests
11 Posts 7 Posters 3.4k Views 7 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.
  • ? A Former User

    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?

    murgeroM Offline
    murgeroM Offline
    murgero
    App Dev
    wrote on last edited by
    #2

    @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. ~

    T ? 2 Replies Last reply
    3
    • murgeroM murgero

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

      T Offline
      T Offline
      thetomester13
      App Dev
      wrote on last edited by
      #3

      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
      0
      • murgeroM murgero

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

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #4

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

        1 Reply Last reply
        0
        • T thetomester13

          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.

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #5

          @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

          rmdesR 1 Reply Last reply
          1
          • ? A Former User

            @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

            rmdesR Offline
            rmdesR Offline
            rmdes
            wrote on last edited by
            #6

            This idea would be neat !!

            1 Reply Last reply
            0
            • fbartelsF Offline
              fbartelsF Offline
              fbartels
              App Dev
              wrote on last edited by
              #7

              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
              1
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #8

                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
                2
                • girishG girish

                  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 🙂

                  ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #9

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

                  robiR 1 Reply Last reply
                  0
                  • ? A Former User

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

                    robiR Offline
                    robiR Offline
                    robi
                    wrote on last edited by
                    #10

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

                    Conscious tech

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

                      Custom packages can already have custom env vars.

                      1 Reply Last reply
                      0
                      • girishG girish marked this topic as a question
                      • girishG girish has marked this topic as solved
                      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