Maybe in your setenv.sh or catalina.properties you might try something like
this:  export JAVA_OPTS="$JAVA_OPTS
-Dcas.env.clusterNodeName=${SOME_VARIABLE_OR_STATIC_VALUE}"


Matt Uribe
ERP Architect/Administrator
Information Technology
Aims Community College
970.339.6375
[email protected]
5401 W. 20th Street
<https://maps.google.com/?q=5401+W.+20th+Street+Greeley,+CO,+80634&entry=gmail&source=g>
Greeley, CO, 80634
<https://maps.google.com/?q=5401+W.+20th+Street+Greeley,+CO,+80634&entry=gmail&source=g>
www.aims.edu
<https://www.aims.edu/about/social-media/>


*IT staff will never ask you for your username and password. *


*Always decline to provide the information and report such attempts to
the Help Desk (x6380).*



On Fri, Feb 7, 2020 at 8:04 AM Nathan Lewan <[email protected]> wrote:

> 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
> <https://urldefense.com/v3/__https://apereo.github.io/cas__;!!DV0tHk0!LZAHr5_EDlSx5_BFCsitd-0nypRP5z9I4UBrbAeI9un0_-n26WmYf5dVJxLw6_B3CWx6$>
> - Gitter Chatroom: https://gitter.im/apereo/cas
> <https://urldefense.com/v3/__https://gitter.im/apereo/cas__;!!DV0tHk0!LZAHr5_EDlSx5_BFCsitd-0nypRP5z9I4UBrbAeI9un0_-n26WmYf5dVJxLw66Vg4qsK$>
> - List Guidelines: https://goo.gl/1VRrw7
> <https://urldefense.com/v3/__https://goo.gl/1VRrw7__;!!DV0tHk0!LZAHr5_EDlSx5_BFCsitd-0nypRP5z9I4UBrbAeI9un0_-n26WmYf5dVJxLw66XmV9iU$>
> - Contributions: https://goo.gl/mh7qDG
> <https://urldefense.com/v3/__https://goo.gl/mh7qDG__;!!DV0tHk0!LZAHr5_EDlSx5_BFCsitd-0nypRP5z9I4UBrbAeI9un0_-n26WmYf5dVJxLw6yQvqZIv$>
> ---
> 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 [email protected].
> 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://urldefense.com/v3/__https://groups.google.com/a/apereo.org/d/msgid/cas-user/d488a43c-7b92-4cb7-ae81-754c7b252af3*40apereo.org?utm_medium=email&utm_source=footer__;JQ!!DV0tHk0!LZAHr5_EDlSx5_BFCsitd-0nypRP5z9I4UBrbAeI9un0_-n26WmYf5dVJxLw6wkubJh9$>
> .
>

-- 
- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2Bdxy9fCmGocp-CsZemXYXYeRDnnL0pnYJyo19ieHvkJwn_v%2Bg%40mail.gmail.com.

Reply via email to