Re: [cas-user] environment variables in custom_messages.properties

2020-02-07 Thread Nathan Lewan


that did it!

awesome, thank you so much



On Friday, February 7, 2020 at 10:24:05 AM UTC-5, Jérôme Steve wrote:
>
> 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  > 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:
>> 
>>
>> 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-...@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
>>  
>> 
>> .
>>
>

-- 
- 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/b251f281-dbf4-4a88-91cd-edda82785842%40apereo.org.


Re: [cas-user] environment variables in custom_messages.properties

2020-02-07 Thread Matthew Uribe
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
matthew.ur...@aims.edu
5401 W. 20th Street

Greeley, CO, 80634

www.aims.edu



*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  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:
> 
>
> 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
> 
> .
>

-- 
- 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/CA%2Bdxy9fCmGocp-CsZemXYXYeRDnnL0pnYJyo19ieHvkJwn_v%2Bg%40mail.gmail.com.


Re: [cas-user] environment variables in custom_messages.properties

2020-02-07 Thread Jérôme Steve
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  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:
> 
>
> 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
> 
> .
>

-- 
- 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.


[cas-user] environment variables in custom_messages.properties

2020-02-07 Thread Nathan Lewan
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:


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.