bigbluebutton-Github/akka-bbb-apps/src/main/scala/org/bigbluebutton/SystemConfiguration.scala

13 lines
405 B
Scala
Raw Normal View History

2015-05-12 06:25:11 +08:00
package org.bigbluebutton
import com.typesafe.config.ConfigFactory
import scala.util.Try
trait SystemConfiguration {
val config = ConfigFactory.load()
lazy val redisHost = Try(config.getString("redis.host")).getOrElse("127.0.0.1")
lazy val redisPort = Try(config.getInt("redis.port")).getOrElse(6379)
2015-06-03 23:54:56 +08:00
lazy val redisPassword = Try(config.getString("redis.password")).getOrElse("")
2015-05-12 06:25:11 +08:00
}