question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can local config override remote props when running embedded?

See original GitHub issue

Can we make local configuration override remote properties when running embedded server?

I know it’s possible when running a Config server and a Config client separately. If I set spring.cloud.config.allowOverride=true on the server and set spring.cloud.config.overrideNone=true on the client, the local configuration overrides the remote.

Some related links regarding this

Is it possible when running embedded server with spring.cloud.config.server.bootstrap=true? I’ve tried set the properties in the project like below but it didn’t work.

spring:
  profiles: default
  cloud:
    config:
      allowOverride: true
      overrideNone: true
      server:
        bootstrap: true
        git:
          uri: file://${user.home}/config

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15

github_iconTop GitHub Comments

2reactions
Sangdolcommented, Mar 11, 2017

@Jeckyli

Thanks @Sangdol for confirming. Now I’m clear that both should reside on config server side, and if I understand correctly, spring.cloud.config.allow-override=true allows system properties from client side to override config server values right?

Right.

so that client will use valueB for this key?

Correct.

1reaction
Cs4rcommented, Apr 28, 2017

This ticket saved my day.

Thank you guys

Read more comments on GitHub >

github_iconTop Results From Across the Web

How spring cloud config use local property override remote ...
I set the following configurations in remote git repo. It works this time. spring: cloud: config: allowOverride: true overrideNone: true ...
Read more >
Spring Cloud
If you want to allow your applications to override the remote properties with their own System properties or config files, the remote property...
Read more >
Overriding the Values of Remote Properties in Spring Cloud ...
In this article, we've seen different ways of overriding the values of remote properties in Spring Cloud Config. It's possible to override the...
Read more >
Configuration Blocks and Attributes - Terragrunt
Learn about all the blocks and attributes supported in the terragrunt configuration file.
Read more >
Configuration Server - Standalone Profile - Apereo Blog
There is also an embedded application.yml file that allows you to override all defaults if you wish to ship the configuration inside the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found