<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Manifest Environment Variable]]></title><description><![CDATA[<p dir="auto">I was looking on the form to see if there was a way to add a custom environment variable via the manifest file.  I have a container for a custom app that has one component that needs to be kept private.  I am posting the image publicly on docker hub and would generally put this variable in via the Dockerfile but since it's public, I'd like to keep this one component secret.</p>
<p dir="auto">So, is there a way to set a custom environment variable from the manifest file?</p>
]]></description><link>https://forum.cloudron.io/topic/5229/manifest-environment-variable</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 16:59:28 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/5229.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Jun 2021 19:09:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Manifest Environment Variable on Tue, 15 Jun 2021 16:58:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Thank you for those commands.  I think I'll just use the cloudron push after I run cloudron install on my image server.</p>
<p dir="auto">Also, not sure if there is a specific way to go about this but I could strip this down a bit to have a base install for the app if it's of use to the Cloudron community.  I'm sure it would have to be polished by the devs but it is an install for Timetrex CE which is a timeclock software that our company uses.</p>
]]></description><link>https://forum.cloudron.io/post/32763</link><guid isPermaLink="true">https://forum.cloudron.io/post/32763</guid><dc:creator><![CDATA[paul.toone]]></dc:creator><pubDate>Tue, 15 Jun 2021 16:58:58 GMT</pubDate></item><item><title><![CDATA[Reply to Manifest Environment Variable on Tue, 15 Jun 2021 16:50:42 GMT]]></title><description><![CDATA[<p dir="auto">@paul-toone Don't know if this helps your automated install but there is a CLI command <code>cloudron push &lt;file&gt; /app/data/session.secret</code> that can help you copy a file into the app's local storage. You can also use <code>cloudron exec -- bash -c "echo 'mysecret' &gt; /app/data/session.secret"</code></p>
]]></description><link>https://forum.cloudron.io/post/32761</link><guid isPermaLink="true">https://forum.cloudron.io/post/32761</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 15 Jun 2021 16:50:42 GMT</pubDate></item><item><title><![CDATA[Reply to Manifest Environment Variable on Tue, 15 Jun 2021 00:04:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Right, but this is a container that is a migration with an existing salt. It's alright, I can just manually put the salt in as I have to restore the pgsql each time I deploy to test anyway. I appreciate the response though.</p>
]]></description><link>https://forum.cloudron.io/post/32736</link><guid isPermaLink="true">https://forum.cloudron.io/post/32736</guid><dc:creator><![CDATA[paul.toone]]></dc:creator><pubDate>Tue, 15 Jun 2021 00:04:12 GMT</pubDate></item><item><title><![CDATA[Reply to Manifest Environment Variable on Mon, 14 Jun 2021 23:34:23 GMT]]></title><description><![CDATA[<p dir="auto">@paul-toone The <code>start.sh</code> "pattern" is like this - <a href="https://git.cloudron.io/cloudron/rocketchat-app/-/blob/master/Dockerfile#L34" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/rocketchat-app/-/blob/master/Dockerfile#L34</a> . It's set as the CMD in Dockerfile. So when the app deploys, it runs as the first thing and the code that <a class="plugin-mentions-user plugin-mentions-a" href="/user/mehdi" aria-label="Profile: mehdi">@<bdi>mehdi</bdi></a> posted would then generate the secret and save it in the app store. So, it's automated as part of the deployment.</p>
]]></description><link>https://forum.cloudron.io/post/32735</link><guid isPermaLink="true">https://forum.cloudron.io/post/32735</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 14 Jun 2021 23:34:23 GMT</pubDate></item><item><title><![CDATA[Reply to Manifest Environment Variable on Mon, 14 Jun 2021 19:55:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mehdi" aria-label="Profile: mehdi">@<bdi>mehdi</bdi></a> I was hoping it could be done on deployment.  Currently, I just have to go in from the host, edit the salt in the local storage add-on I'm using.</p>
<p dir="auto">But, I know Cloudron is mostly for new apps, not migrating existing apps over, so I figured it would not be possible in the manifest file.</p>
]]></description><link>https://forum.cloudron.io/post/32732</link><guid isPermaLink="true">https://forum.cloudron.io/post/32732</guid><dc:creator><![CDATA[paul.toone]]></dc:creator><pubDate>Mon, 14 Jun 2021 19:55:48 GMT</pubDate></item><item><title><![CDATA[Reply to Manifest Environment Variable on Mon, 14 Jun 2021 19:38:12 GMT]]></title><description><![CDATA[<p dir="auto">@paul-toone What you should do in this case is use the <code>localstorage</code> addon, then store the secret in question in <code>/app/data</code> in a file. If it's a salt, you can also generate it on the first run if the file in question does not exist.</p>
<p dir="auto">Example from the <code>start.sh</code> of one of my apps:</p>
<pre><code class="language-bash">if [ ! -f /app/data/session.secret ]; then
  dd if=/dev/urandom bs=256 count=1 | base64 &gt; /app/data/session.secret
fi
</code></pre>
]]></description><link>https://forum.cloudron.io/post/32731</link><guid isPermaLink="true">https://forum.cloudron.io/post/32731</guid><dc:creator><![CDATA[mehdi]]></dc:creator><pubDate>Mon, 14 Jun 2021 19:38:12 GMT</pubDate></item><item><title><![CDATA[Reply to Manifest Environment Variable on Mon, 14 Jun 2021 19:38:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/brutalbirdie" aria-label="Profile: brutalbirdie">@<bdi>brutalbirdie</bdi></a> I'm moving an app that is already in production, so my salt doesn't change; but I don't want it out in public.  For every new install, yes, the salt is unique.</p>
]]></description><link>https://forum.cloudron.io/post/32730</link><guid isPermaLink="true">https://forum.cloudron.io/post/32730</guid><dc:creator><![CDATA[paul.toone]]></dc:creator><pubDate>Mon, 14 Jun 2021 19:38:05 GMT</pubDate></item><item><title><![CDATA[Reply to Manifest Environment Variable on Mon, 14 Jun 2021 19:35:00 GMT]]></title><description><![CDATA[<p dir="auto">@paul-toone and the salt password is unique for every instance you deploy with your custom app, right?</p>
]]></description><link>https://forum.cloudron.io/post/32729</link><guid isPermaLink="true">https://forum.cloudron.io/post/32729</guid><dc:creator><![CDATA[BrutalBirdie]]></dc:creator><pubDate>Mon, 14 Jun 2021 19:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to Manifest Environment Variable on Mon, 14 Jun 2021 19:33:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/brutalbirdie" aria-label="Profile: brutalbirdie">@<bdi>brutalbirdie</bdi></a> Close, it's the apps salt password.</p>
]]></description><link>https://forum.cloudron.io/post/32728</link><guid isPermaLink="true">https://forum.cloudron.io/post/32728</guid><dc:creator><![CDATA[paul.toone]]></dc:creator><pubDate>Mon, 14 Jun 2021 19:33:20 GMT</pubDate></item><item><title><![CDATA[Reply to Manifest Environment Variable on Mon, 14 Jun 2021 19:32:14 GMT]]></title><description><![CDATA[<p dir="auto">@paul-toone sound a lot like you want to protect a software key or sort of.<br />
I am unsure if this is possible.</p>
]]></description><link>https://forum.cloudron.io/post/32727</link><guid isPermaLink="true">https://forum.cloudron.io/post/32727</guid><dc:creator><![CDATA[BrutalBirdie]]></dc:creator><pubDate>Mon, 14 Jun 2021 19:32:14 GMT</pubDate></item></channel></rss>