That is documented behavior. reference.conf have substitutions resolved first, without application.conf in the stack, so the reference stack has to be self-contained.
One way to solve it is to do the concatenation of the base url and the method suffix in code instead. /Patrik tors 4 aug. 2016 kl. 10:31 skrev BlueEyed Hush <[email protected]>: > Hello, > > I think I don't understand philosophy behind Typesafe Config, and I'd like > to ask you to help me with that. > Setup I thought to be natural for Config was: > * My libraries have reference.conf files with default values > * My application includes application.conf which overrides those values > But everything breaks because of the fact that overrides from > application.conf don't affect substitutions in reference.conf. > > Example: > I've got library which connects to service. Urls are placed in > reference.conf file, and they use ${service.url}: > > service { > url = "http://XXX" > schema { > url = ${service.url}/schema > get.url = ${service.schema.url}/get > put.url = ${service.schema.url}/put > } > > } > > Now in my application.conf I override service.url, but it doesn't work since > substitutions aren't affected and urls are wrong. > > > How should I structure my configuration to handle this scenario? > > > Best wishes, > > Chris > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
