Yes you can connect to config server outside PCF (ex: consul by Hashicorp).. Using bootstrap.properties is an ideal way to fetch the config and you need to have parameters like:
spring.cloud.consul.host=
spring.cloud.consul.port=
spring.cloud.consul.config.name=
along with the related token to connect securely
spring.cloud.consul.config.acl-token=
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…