<div dir="ltr">I was assuming Java code, but didn't understand how you implemented profile upload ;)<div><br></div><div>Go with Mareks suggestions as you won't have access to env variables from within JavaScript. theme.properties doesn't currently support using system properties or env variables, but maybe it should. You can create JIRA for it if you want.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 May 2016 at 17:29, Chris Hairfield <span dir="ltr"><<a href="mailto:chairfield@gmail.com" target="_blank">chairfield@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Interesting. Would you mind showing a code example, Stian? I assumed that the Javascript had no access to environment variables, as is standard; are environment variables accessible from the template? Any ability to read environment variables directly would simplify our approach.<br><br>Marek, thank you for your suggestion. We are able to read values from our theme.properties file exactly as you described.</div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Mon, May 9, 2016 at 10:40 PM Stian Thorgersen <<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Not sure how you're implementing the profile upload, but you just need to use a environment value. Any code you write would have access to that.</div><div class="gmail_extra"><br><div class="gmail_quote">On 9 May 2016 at 16:03, Marek Posolda <span dir="ltr"><<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Maybe you can use "theme.properties"
file and configure some property, which will be different in your
staging and production environment . In the freemarker template,
the properties of theme should be available under key "properties"
. So you can read your property from the freemarker file. <br>
<br>
Seems you will need different version of theme.properties for your
staging and production, but I don't have better idea to solve this
:/<br>
<br>
Marek<div><div><br>
<br>
On 06/05/16 23:04, Chris Hairfield wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div>
<div dir="ltr">
<p style="margin-top:0px;margin-bottom:0px;font-family:calibri,arial,helvetica,sans-serif;font-size:16px;line-height:normal">We're
considering building an account management theme that is
capable of uploading a profile photo. We'd save the photo to
an S3 bucket, and would wish to do so based on environment;
our stage Keycloak would point to a stage S3 bucket, prod to
the prod bucket, etc..</p>
<p style="margin-top:0px;margin-bottom:0px;font-family:calibri,arial,helvetica,sans-serif;font-size:16px;line-height:normal"><br>
</p>
<p style="margin-top:0px;margin-bottom:0px;font-family:calibri,arial,helvetica,sans-serif;font-size:16px;line-height:normal">Is
there a way to configure Keycloak on a per-environment basis
such that our theme could know its environment in order
to point to the correct S3 bucket?</p>
<p style="margin-top:0px;margin-bottom:0px;font-family:calibri,arial,helvetica,sans-serif;font-size:16px;line-height:normal"><br>
</p>
<p style="margin-top:0px;margin-bottom:0px;font-family:calibri,arial,helvetica,sans-serif;font-size:16px;line-height:normal">Thanks!<br>
Chris</p>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>