24 lines
1.4 KiB
Scala
Executable File
24 lines
1.4 KiB
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("")
|
|
lazy val httpInterface = Try(config.getString("http.interface")).getOrElse("")
|
|
lazy val httpPort = Try(config.getInt("http.port")).getOrElse(9090)
|
|
lazy val telizeHost = Try(config.getString("services.telizeHost")).getOrElse("")
|
|
lazy val telizePort = Try(config.getInt("services.telizePort")).getOrElse(80)
|
|
lazy val bbbWebHost = Try(config.getString("services.bbbWebHost")).getOrElse("localhost")
|
|
lazy val bbbWebPort = Try(config.getInt("services.bbbWebPort")).getOrElse(8888)
|
|
lazy val bbbWebAPI = Try(config.getString("services.bbbWebAPI")).getOrElse("localhost")
|
|
lazy val bbbWebSharedSecret = Try(config.getString("services.sharedSecret")).getOrElse("changeme")
|
|
lazy val bbbWebModeratorPassword = Try(config.getString("services.moderatorPassword")).getOrElse("changeme")
|
|
lazy val bbbWebViewerPassword = Try(config.getString("services.viewerPassword")).getOrElse("changeme")
|
|
lazy val bbbWebDefaultPresentationURL = Try(config.getString("services.defaultPresentationURL")).getOrElse("changeme")
|
|
} |