Hi Matthew,
Thanks for your response. I have successfully used env variables in my
cas.properties file, but when I tried to put it in the json service file it
didn't work.
On Tuesday, October 29, 2019 at 12:11:45 PM UTC-4, Matthew Uribe wrote:
>
> I've not tried this for the json service registry files, but I do use
> some system variables in my cas.properties. In order to do so, you have to
> set it in JAVA_OPTS
>
> So, for the example in Nebil's post, assume ${path.system.variable} should
> be set to a path matching the $HOSTNAME of the host:
>
> export JAVA_OPTS="$JAVA_OPTS -Dpath.system.variable=/${HOSTNAME}"
>
>
> That way, again, I haven't tried this in the json file, only in the
> .properties file, the "location" : "${path.system.variable}/public.key",
> should be read as "location" : "/the_hostname_here/public.key",
>
> I add my JAVA_OPTS to my setenv.sh file
>
>
> https://stackoverflow.com/questions/5241743/how-do-i-use-the-java-opts-environment-variable
>
>
> On Tuesday, October 29, 2019 at 9:03:59 AM UTC-6, Peyo Tzolov wrote:
>>
>> Hey, did you ever figure out how to do this?
>>
>> On Monday, August 6, 2018 at 1:11:38 PM UTC-4, Nebil Mabrouk wrote:
>>>
>>> Hi all,
>>>
>>> I'm using CAS 5.3.2, and I'm using JSON for service definition.
>>> I need to introduce a system variable in the value of some parameters in
>>> the JSON file, such as the following example:
>>>
>>> "publicKey" : {
>>> "@class" : "org.apereo.cas.services.RegisteredServicePublicKeyImpl",
>>> "location" : "${path.system.variable}/public.key",
>>> ...
>>> }
>>>
>>>
>>> Is there a way to do it? Thank you in advance.
>>>
>>>
>>> Nebil
>>>
>>>
--
Avis de confidentialité
Les
informations contenues dans le présent
message et dans toute pièce qui
lui est jointe sont confidentielles et
peuvent être protégées par le
secret professionnel. Ces informations sont
à l’usage exclusif de son ou
de ses destinataires. Si vous recevez ce
message par erreur, veuillez
s’il vous plait communiquer immédiatement
avec l’expéditeur et en
détruire tout exemplaire. De plus, il vous est
strictement interdit de
le divulguer, de le distribuer ou de le reproduire
sans l’autorisation
de l’expéditeur. Merci.
Confidentiality notice
This
e-mail message and any attachment hereto contain confidential
information
which may be privileged and which is intended for the
exclusive use of its
addressee(s). If you receive this message in error,
please inform sender
immediately and destroy any copy thereof.
Furthermore, any disclosure,
distribution or copying of this message
and/or any attachment hereto
without the consent of the sender is
strictly prohibited. Thank you.
--
- 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/d599c04c-fd3b-4706-9550-84758819e64f%40apereo.org.