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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

App Custom Required Environment Vars

Scheduled Pinned Locked Moved Feature Requests
10 Posts 7 Posters 369 Views
    • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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 1 Reply Last reply
    8
  • murgeroM Offline
    murgeroM Offline
    murgero App Dev
    replied to A Former User 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. ~
    Matrix: @murgero:urgero.org

    T ? 2 Replies Last reply
    3
  • T Offline
    T Offline
    thetomester13 App Dev
    replied to murgero 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
  • ? Offline
    ? Offline
    A Former User
    replied to murgero on last edited by
    #4

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

    1 Reply Last reply
    0
  • ? Offline
    ? Offline
    A Former User
    replied to thetomester13 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
  • rmdesR Offline
    rmdesR Offline
    rmdes
    replied to A Former User 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
  • ? Offline
    ? Offline
    A Former User
    replied to girish 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
  • robiR Offline
    robiR Offline
    robi
    replied to A Former User 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?

    Life of sky tech

    1 Reply Last reply
    1

  • Login

  • Don't have an account? Register

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

  • Don't have an account? Register

  • Login or register to search.