Pablo, I have an application.yml file in src/main/resources with all properties. Some of them have variables for values: cas: authn: saml-idp: metadata: file-system: location: ${saml-idp.metadata.file-system.location}
At the bottom of the file I have default values (makes local running simple - but you could use prod values instead): saml-idp: metadata: file-system: location: file:/home/casrunner/idp/metadata Then our jenkins job adds application.properties (also includes secrets): saml-idp.metadata.file-system.location={{ saml-idp_metadata_location }} service-registry.ldap.bind-credential={{ service_ldap_bind_credential }} Filling in the specifics for the target deploy. This way your problem is one of deployment, not cas. You can set the directory of application.properties when starting tomcat: -Dcas.standalone.configurationDirectory=/etc/cas/config Not sure what you are referring to with host name. Ray On Fri, 2024-06-07 at 10:03 -0700, Pablo Vidaurri wrote: You don't often get email from psvidau...@gmail.com. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Have CAS deployed to AWS with ability to auto scale new instances based on load/demand. At the moment the cas configuration directory where the cas.properties file is raising some doubts. There are a couple of settings like host name and registry cleaner enable flag. Host should usually be unique among instances and cleaner flag should only be set on one instance. How best to have a common properties file and define these new flags per instance? I know I can pass in -D flag at startup but somewhere I still need to determine how to make host unique and reserve a single host to enable the cleaner. Is there a way to invoke the cleaner with an API call that I can trigger with a scheduled lambda? -- - 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/f1781245da2af861705bb8d761a3564830c60f89.camel%40uvic.ca.