I'm hosting a configuration in a repo on GitHub. If I keep the repo public all's good, but if I make it private I face:
org.eclipse.jgit.errors.TransportException:
https://github.com/my-user/my-repo:
Authentication is required but no CredentialsProvider has been registered
the property I use to target the repo is
spring.cloud.config.server.git.uri=https://github.com/my-user/my-repo
What should I do to configure this properly with the private repo, thanks
Spring Cloud Config Server provides an HTTP resource-based API for external configuration (name-value pairs or equivalent YAML content). The server is embeddable in a Spring Boot application, by using the @EnableConfigServer annotation.
Overriding the Values of Remote Properties If you want to allow your applications to override the remote properties with their own System properties or config files, the remote property source has to grant it permission by setting spring. cloud. config.
you need to add the
spring.cloud.config.server.git.username=your_github_username
spring.cloud.config.server.git.password=your_github_password
and things should workout for you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With