Browse Source

server: Add config for the database

scalafmt-draft
Alexis Hernandez 7 years ago
parent
commit
035c2cc28f
  1. 25
      server/conf/application.conf

25
server/conf/application.conf

@ -35,6 +35,31 @@ play.modules.enabled += "com.xsn.explorer.modules.ConfigModule"
play.modules.enabled += "com.xsn.explorer.modules.ExecutorsModule"
play.modules.enabled += "com.xsn.explorer.modules.XSNServiceModule"
db.default {
driver = "org.postgresql.Driver"
host = "localhost:5432"
database = "xsn_blockchain"
username = "postgres"
password = ""
host = ${?XSN_PSQL_HOST}
database = ${?XSN_PSQL_DATABASE}
username = ${?XSN_PSQL_USERNAME}
password = ${?XSN_PSQL_PASSWORD}
url = "jdbc:postgresql://"${db.default.host}"/"${db.default.database}
}
play.evolutions {
autoApply = true
db.default {
enabled = true
autocommit = false
}
}
externalService.dispatcher {
executor = "thread-pool-executor"
throughput = 1

Loading…
Cancel
Save