Hi Nathan,

With thymeleaf template you can get directly env var by using this :

${@environment.getProperty('cas.env.clusterNodeName')}

Jérôme.

Le ven. 7 févr. 2020 à 16:04, Nathan Lewan <nathanle...@gmail.com> a écrit :

> hello!
>
> i've been trying to get environment variables to resolved when added to my
> custom_messages.properties file.
>
>
> i've tried creating a env variable in my SPRING_APPLICATION_JSON
> environment variable, lets call it cas.env.clusterNodeName
>
> i then add it to custom_messages.properties as:
>
> custom.env.clusterNodeName=${cas.env.clusterNodeName}
>
> as I would do if I were passing it through to the cas.properties file.
>
> then on the html in the theme i'm working with I add this:
> <p th:text="#{custom.env.clusterNodeNanem}"></p>
>
> but it doesn't resolve, it just prints out ${cas.env.clusterNodeName}
>
>
> any ideas?
>
> thanks for all the help you all give!
>
> --
> - Website: https://apereo.github.io/cas
> - Gitter Chatroom: https://gitter.im/apereo/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cas-user+unsubscr...@apereo.org.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/d488a43c-7b92-4cb7-ae81-754c7b252af3%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/d488a43c-7b92-4cb7-ae81-754c7b252af3%40apereo.org?utm_medium=email&utm_source=footer>
> .
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAD6KnbwnizXHqzYb5RqAsOb2CJu9p4-HryKCanpL9mH%3DEDRPbg%40mail.gmail.com.

Reply via email to