<?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[CloudronManifest: Configurable Environment Variable?]]></title><description><![CDATA[<p dir="auto">How can we add a configurable environment variable to the CloudronManifest.json? Similar to the ones already present for TCP Ports, but to allow arbitrary values.</p>
<p dir="auto">My use case is: I'd love to create a proxy app which forwards all traffic to another Cloudron app to provide a beautiful, front facing url to the end customer.</p>
<p dir="auto">Let's say I have installed Mautic at <code>marketing.domain.tld</code> and I create a custom landing page within the Mautic app. This will be reachable via <code>marketing.domain.tld/my-landing-page</code>. Now I'd love to install a proxy app which runs on <code>my-landing-page.com</code> and proxies all requests to a configurable url (in this case to <code>marketing.domain.tld/my-landing-page</code>.</p>
<p dir="auto">It would be awesome to be able to configure the proxy url from the app configuration ui and pass it's value as environment variable.</p>
]]></description><link>https://forum.cloudron.io/topic/1338/cloudronmanifest-configurable-environment-variable</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 00:46:58 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/1338.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 May 2018 08:58:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CloudronManifest: Configurable Environment Variable? on Sun, 20 May 2018 02:06:45 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> thanks for getting back on this. Had to playing around with the apache2 configuration and was finally able to figure out a way that works. To make a long story short: <code>ProxyPreserveHost</code> lead to a infinite loop. As soon as I removed it, things started working.</p>
<p dir="auto">I've put together the final app here, maybe this is of use for someone else:<br />
<a href="https://git.cloudron.io/mandelkind/proxy-app" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/mandelkind/proxy-app</a></p>
<p dir="auto">Given the fact that I had to play around quite a bit, maybe we should add this to the app store as well? As a helper app, like the LAMP one.</p>
]]></description><link>https://forum.cloudron.io/post/1623</link><guid isPermaLink="true">https://forum.cloudron.io/post/1623</guid><dc:creator><![CDATA[marbetschar]]></dc:creator><pubDate>Sun, 20 May 2018 02:06:45 GMT</pubDate></item><item><title><![CDATA[Reply to CloudronManifest: Configurable Environment Variable? on Tue, 15 May 2018 03:22:58 GMT]]></title><description><![CDATA[<p dir="auto">Are you able to curl the mautic URL from your proxy app?</p>
]]></description><link>https://forum.cloudron.io/post/1608</link><guid isPermaLink="true">https://forum.cloudron.io/post/1608</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 15 May 2018 03:22:58 GMT</pubDate></item><item><title><![CDATA[Reply to CloudronManifest: Configurable Environment Variable? on Mon, 14 May 2018 13:02:46 GMT]]></title><description><![CDATA[<p dir="auto">This is what I get as console output, after letting it run for a looooong time:</p>
<pre><code>14:53:10 [main] [Mon May 14 12:53:10.366258 2018] [core:notice] [pid 1] AH00094: Command line: '/usr/sbin/apache2 -D FOREGROUND'




14:53:27 [main] [Mon May 14 12:53:27.312102 2018] [mpm_prefork:error] [pid 1] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
14:58:16 [main] [Mon May 14 12:58:16.990018 2018] [proxy_http:error] [pid 10] (70007)The timeout specified has expired: [client 172.18.0.1:56316] AH01102: error reading status line from remote server marketing.domain.tld:443
14:58:16 [main] [Mon May 14 12:58:16.991921 2018] [proxy:error] [pid 10] [client 172.18.0.1:56316] AH00898: Error reading from remote server returned by /
14:58:17 [main] [Mon May 14 12:58:17.019803 2018] [proxy_http:error] [pid 11] (70007)The timeout specified has expired: [client 172.18.0.1:56338] AH01102: error reading status line from remote server marketing.domain.tld:443
14:58:17 [main] [Mon May 14 12:58:17.025742 2018] [proxy:error] [pid 11] [client 172.18.0.1:56338] AH00898: Error reading from remote server returned by /testseite/
14:58:17 [main] [Mon May 14 12:58:17.034610 2018] [proxy_http:error] [pid 12] (70007)The timeout specified has expired: [client 172.18.0.1:56348] AH01102: error reading status line from remote server marketing.domain.tld:443
14:58:17 [main] [Mon May 14 12:58:17.036525 2018] [proxy:error] [pid 12] [client 172.18.0.1:56348] AH00898: Error reading from remote server returned by /testseite/testseite/
14:58:17 [main] [Mon May 14 12:58:17.048372 2018] [proxy_http:error] [pid 13] (70007)The timeout specified has expired: [client 172.18.0.1:56356] AH01102: error reading status line from remote server marketing.domain.tld:443
14:58:17 [main] [Mon May 14 12:58:17.049827 2018] [proxy:error] [pid 13] [client 172.18.0.1:56356] AH00898: Error reading from remote server returned by /testseite/testseite/testseite/
14:58:17 [main] [Mon May 14 12:58:17.063919 2018] [proxy_http:error] [pid 14] (70007)The timeout specified has expired: [client 172.18.0.1:56362] AH01102: error reading status line from remote server marketing.domain.tld:443
14:58:17 [main] [Mon May 14 12:58:17.065509 2018] [proxy:error] [pid 14] [client 172.18.0.1:56362] AH00898: Error reading from remote server returned by /testseite/testseite/testseite/testseite/
14:58:17 [main] [Mon May 14 12:58:17.510359 2018] [proxy_http:error] [pid 15] (70007)The timeout specified has expired: [client 172.18.0.1:56368] AH01102: error reading status line from remote server marketing.domain.tld:443
14:58:17 [main] [Mon May 14 12:58:17.511644 2018] [proxy:error] [pid 15] [client 172.18.0.1:56368] AH00898: Error reading from remote server returned by /testseite/testseite/testseite/testseite/testseite/
14:58:18 [main] [Mon May 14 12:58:18.527941 2018] [proxy_http:error] [pid 16] (70007)The timeout specified has expired: [client 172.18.0.1:56378] AH01102: error reading status line from remote server marketing.domain.tld:443
14:58:18 [main] [Mon May 14 12:58:18.529377 2018] [proxy_http:error] [pid 17] (70007)The timeout specified has expired: [client 172.18.0.1:56384] AH01102: error reading status line from remote server marketing.domain.tld:443
14:58:18 [main] [Mon May 14 12:58:18.529762 2018] [proxy:error] [pid 16] [client 172.18.0.1:56378] AH00898: Error reading from remote server returned by /testseite/testseite/testseite/testseite/testseite/testseite/
</code></pre>
]]></description><link>https://forum.cloudron.io/post/1599</link><guid isPermaLink="true">https://forum.cloudron.io/post/1599</guid><dc:creator><![CDATA[marbetschar]]></dc:creator><pubDate>Mon, 14 May 2018 13:02:46 GMT</pubDate></item><item><title><![CDATA[Reply to CloudronManifest: Configurable Environment Variable? on Mon, 14 May 2018 12:42:12 GMT]]></title><description><![CDATA[<p dir="auto">I created an initial package which allows a create a apache2.conf:<br />
<a href="https://git.cloudron.io/mandelkind/proxy-app" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/mandelkind/proxy-app</a></p>
<p dir="auto">Now I've installed it at <code>proxy.domain.tld</code> and configured it as follows:</p>
<pre><code>&lt;VirtualHost *:80&gt;
    ProxyPreserveHost On
    SSLProxyEngine on

    # Servers to proxy the connection, or;
    # List of application servers:
    # Usage:
    # ProxyPass / http://[IP Addr.]:[port]/
    # ProxyPassReverse / http://[IP Addr.]:[port]/
    # Example: 
    ProxyPass / https://marketing.domain.tld/testseite/
    ProxyPassReverse / https://marketing.domain.tld/testseite/
&lt;/VirtualHost&gt;
</code></pre>
<p dir="auto">If I now start the app and try to open <code>https://proxy.domain.tld</code> in the browser, it just loads for an infinite amount of time - seems like there is some sort of infinite loop somewhere.</p>
<p dir="auto">Does anybody know whats wrong with my setup?</p>
]]></description><link>https://forum.cloudron.io/post/1597</link><guid isPermaLink="true">https://forum.cloudron.io/post/1597</guid><dc:creator><![CDATA[marbetschar]]></dc:creator><pubDate>Mon, 14 May 2018 12:42:12 GMT</pubDate></item><item><title><![CDATA[Reply to CloudronManifest: Configurable Environment Variable? on Mon, 14 May 2018 09:58:39 GMT]]></title><description><![CDATA[<p dir="auto">I'd love to see this feature too! Sadly, there is no way to do such a thing yet.</p>
<p dir="auto">Two possible workarounds for your problem:</p>
<ul>
<li>Create a basic admin interface under <code>/admin</code> or something, that would allow you to configure your proxy</li>
<li>Assume that someone who configures a proxy is at ease with a command line, and just have a config file under <code>/app/data</code> that the user can configure with the webterminal</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/1595</link><guid isPermaLink="true">https://forum.cloudron.io/post/1595</guid><dc:creator><![CDATA[mehdi]]></dc:creator><pubDate>Mon, 14 May 2018 09:58:39 GMT</pubDate></item></channel></rss>