How to adjust configuration to own environment?

Hi all
I am using https://doc.akka.io/docs/akka-persistence-cassandra/current/index.html and would I like to override default configuration.
The default configuration can be found on https://github.com/akka/akka-persistence-cassandra/blob/master/core/src/main/resources/reference.conf.

For example, I would like to override the following options

contact-points = ["127.0.0.1"]
# To connect to the Cassandra hosts with credentials.
# Authentication is disabled if username is not configured.
authentication.username = ""
authentication.password = ""

The question is, how to do it?

Thanks

Hey there,

You can override those in your resources/application.conf by specifying the value for cassandra-journal.cassandra-snapshot-store.contact-points. Similarly, you can change any other option exactly the same way. Under the hood, Akka uses HOCON for configuration. I strongly recommend you make yourself familiar with its documentation, you shan’t regret it.

1 Like

Thanks a lot.