In your application.conf, it will remain the same:
{
name {
postgres {
host = ""
username = ""
password = ""
}
}
}
And in your local.conf, you should include application.conf like this:
include "application.conf"
{
name {
postgres {
host = "blabla"
username = "aa"
password = "bb"
}
}
}
When running the sbt you should specifically mention to load local.conf like this (Or else application.conf will get loaded by default):
sbt run -Dconfig.resource=local.conf
With that, local.conf will be extended from application.conf. The value from local.conf will be picked if there is any key that is exists in both files.
Now, you would get:
name.postgres.host=blabla