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
|
|
|
}
|