I\'ve an Akka application which uses multiple configuration values (IP address, port numbers) defined in resource/application.conf. I\'m using the sbt-ass
We do it in prod like so:
#deploy_prod.conf
include "application"
akka.remote.hostname = "prod.blah.com"
# Example of passing in S3 keys
s3.awsAccessKeyId="YOUR_KEY"
s3.awsSecretAccessKey="YOUR_SECRET_KEY"
The above file must end in .conf. It has all the production environment specific configs, and lives outside the jar, so you deploy an identical Akka artifact to all servers. It will override anything in application.conf.
Then in the startup script:
java -Dconfig.file=/full/path/deploy_prod.conf -jar your.jar com.your.Main