Hi everyone,

I am working on CAS 6.1.5 and I configured a spring configuration server
for my spring-boot applications.

The spring config server is working as expected for my CAS instance : I
wrote the bootstrap.properties file and put it in the src/main/resources
directory before building with gradlew. The war file included the file and
the service is starting as expected.

But, I manage my source file with git and I don't want to commit the
bootstrap.properties file with content credentials used to connect to the
spring config server. With my spring-boot2 application, I do not include
this file in the jar file, put the file on my server in a directory called
config, and launch the application with the following command :  java
-Dloader.path="config" -jar myapp.jar

I tried to do so with CAS, but the bootstrap.properties file is not read as
expected.

My question is how to make it working with the bootstrap.properties file
outside the jar/war file ? Or are there others options/methods to not
include spring config credential in bootstrap.properties commited on the
git repository ?

Thanks.


- - - -

CAS Version: 6.1.5
CAS Branch: 6.1.x
CAS Commit Id: ca6c71ae73f2418843a300165115a4c137649680
CAS Build Date/Time: 2020-02-29T00:51:20Z
Spring Boot Version: 2.2.0.RELEASE
Spring Version: 5.2.0.RELEASE
Java Home: /usr/lib/jvm/java-11-openjdk-amd64
Java Vendor: Ubuntu
Java Version: 11.0.9.1

-- 
- 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/CADbxa2gXq%2BtjYM4kJSpLCvgT5iN46B0a8fE%3DjrVescp5yyu9Yg%40mail.gmail.com.

Reply via email to