I have Config Server app that reads from a git repo that looks like this:

RedTeam
  gps
    gps.yml
    gps.properties
GoldTeam
  gps
    gps.yml
    gps.properties

I'm on RedTeam and the app I'm working on is gps. However ConfigServer gives gps config files from both GoldTeam and RedTeam when I only want configs under RedTeam/gps. Is there a way I can have my Config Server only pick up configs in the RedTeam/gps folder without having to change the app name?

I thought spring.cloud.config.server.git.searchPaths would work I read the documentation I've tried:

searchPaths: 'ReadTeam' searchPaths: 'ReadTeam/*' searchPaths: 'ReadTeam/{application}'

but it keeps searching all the folders. Whenever I query Config Server localhost:8080/gps or localhost:8080/RedTeam/gps I still get the config files from both RedTeam/gps and GoldTeam/gps.

Read these but didn't help https://github.com/spring-cloud/spring-cloud-config/issues/252 https://stackoverflow.com/questions/35026446/spring-cloud-config-searchpaths

Comment From: 7--

Any suggestions please. Should I try a different value for searchPaths or is there something idk about that might work?

Comment From: 7--

removed the configs programatically