bigbluebutton-Github/akka-bbb-apps/src/main/scala/org/bigbluebutton/SystemConfiguration.scala
2015-06-09 18:49:47 +00:00

13 lines
405 B
Scala
Executable File

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)
lazy val redisPassword = Try(config.getString("redis.password")).getOrElse("")
}