Questions tagged [hocon]

HOCON (Human-Optimized Config Object Notation) keep the semantics (tree structure; set of types; encoding/escaping) from JSON, but make it more convenient as a human-editable config file format.

HOCON (Human-Optimized Config Object Notation) keeps the semantics (tree structure; set of types; encoding/escaping) from JSON, but makes it more convenient as a human-editable config file format.

https://github.com/typesafehub/config/blob/master/HOCON.md

90 questions
1
vote
1 answer

Assigning config values with HOCON and C#

I have a setup for an Akka ActorSystem like so: akka { actor{ provider = ""Akka.Remote.RemoteActorRefProvider, Akka.Remote"" deployment { /remoteecho { remote = ""akka.tcp://Target@{0}"" } } } } What I…
nordlund63
  • 13
  • 4
1
vote
0 answers

Typesafe substitution using parametrized reference

Is it possible to achieve something like this: region : 2 regions { 1 : us-east-1 2 : eu-west-1 3 : sa-east-1 } # Desired outcome is `name : eu-west-1` (depending on the region value) name : ${regions.${region}}
Costi Muraru
  • 2,065
  • 1
  • 20
  • 25
1
vote
3 answers

HOCON not substituting environment variables

I have read the documentation concerning falling back to environment variables at https://github.com/typesafehub/config/blob/master/HOCON.md#substitution-fallback-to-environment-variables. My understanding was that it would pickup any envars. So for…
bearrito
  • 2,217
  • 1
  • 25
  • 36
0
votes
0 answers

Appending to an object inside of list in HOCON

I have difficulty appending an object to an object that is inside of the list. In one file I have two objects specified. `ObjectOne = { value1= 12 value2 = 15} ObjectTwo = { value1= 10 value2 = 7}` In other file I have a list that has objects…
Vondrys
  • 13
  • 3
0
votes
1 answer

How to have Hocon configuration with dot in key name?

conf file : hdfs { asd = 1 asd.bla = 2 } when I m trying to load the config file config.getConfig("hdfs") the keys are merged, and are not separeted Config(SimpleConfigObject({"asd":{"bla":2}})) Workaround to use conf file like this : hdfs { …
0
votes
0 answers

Iterate over a list of configs in hocon

I have config file that inherits a list of properties from a parent file. Parent file looks like below object: { x : { ..... name: x } y : { ..... name: y } } And my config file is as below include…
Yellowjacket
  • 548
  • 2
  • 7
  • 19
0
votes
1 answer

Do not override variable in hocon files

I have a variable 'prefix' defined with default value 'base_' in base.conf file as below prefix: base_ propObject: { property: {prefix}property } And I have two other files child1.conf and child2.conf that inherit base.conf and use propObject…
Yellowjacket
  • 548
  • 2
  • 7
  • 19
0
votes
1 answer

Ktor parsing of arrays with nested objects config

I am trying to use the following configuration in Ktor: source { quotes { inputTopicBaseName = "quotes" providers = [ { provider = "BHS" windows = [ { grace = "PT1M" size = "PT1M" …
AmsterdamLuis
  • 341
  • 3
  • 21
0
votes
0 answers

How to read hocon file in C#

I have a project where configuration info for the app are in hocon files. I want to write integration tests with information from those files. How can I get into those files and then map them to objects? In my program I do this with…
user0810
  • 886
  • 5
  • 19
  • 33
0
votes
0 answers

Way to resolve both string and list as a Java list in Typesafe config

I have a HOCON config file, something like foo { [ id: 1 f: abc ], [ id: 2 f: [xyz , pqr] ] } At the backend, I want the field f as a Java list. So…
beginner
  • 13
  • 3
0
votes
1 answer

Cors issue with allowedOrigins in play framework 2.8.15 using hocon variables

There is a java application, which use java, scala, playframework and maven. jdk 11.0.14 play2 version 2.8.15 scala.version 2.12.15 play2.plugin.version 1.0.0-rc6-SNAPSHOT sbt-compiler.plugin.version 1.0.0 application.conf play.application.loader…
0
votes
0 answers

How to resolve config from file and also few config programmatically?

In my use case, I have a scenario where I want to populate some of the configs from the typesafe config file itself and some of those, I want to set programmatically. For example, for below myconfig.conf file env=staging topic=${env}_${event} In…
Piyush Patel
  • 1,646
  • 1
  • 14
  • 26
0
votes
1 answer

Akka.net: Should I specify "split brain resolver" configuration for Lighthouse/Seed nodes

I have this application using Akka.net cluster feature. The people who wrote the code have left the company. I am trying to understand the code and we are planning a deployment. The cluster has 2 types of nodes QueueServicer: supports sharding and…
user738338
  • 33
  • 1
  • 8
0
votes
0 answers

Preserve dot notation when editing HOCON file

I'm creating a hocon conf file using pyhocon.(https://github.com/chimpler/pyhocon). I'm trying to build the hocon file by using a standard hocon file, updating the necessary values and upload the updated file. deployment { proxy { //…
Confringo
  • 23
  • 4
0
votes
1 answer

Java: How to merge two hocon config block into one?

I have two config main config: main.conf join { } required merge into main: test.conf mergeMe { value = "SomeValue" } result: join { test { value = "SomeValue" } } merged block named as same as the merge file`s name I tried in…
lamadaemon
  • 65
  • 1
  • 7