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 >> >> -- - 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/c3a325c9-d975-4169-bd6b-68fba89495d2%40apereo.org.