def baseUri()

in app/config/Config.scala [51:99]


  def baseUri(host: String) = s"https://$host"

  final def getStringSetFromConf(key: String): Set[String] = Try(
    playConfig
      .get[String](key)
      .split(",")
      .map(_.trim)
      .toSet
  ).getOrElse(Set.empty)

  lazy val corsAllowedOrigins: Set[String] = getStringSetFromConf("security.cors.allowedOrigins").map(baseUri)

  lazy val corsAllowedDomains: Set[String] = composerUrls +
    mediaAtomMakerUrl ++ allowDevServiceToCallWorkflowCode("video") +
    atomWorkshopUrl ++ allowDevServiceToCallWorkflowCode("atomworkshop") +
    s"https://recipes.$domain" ++ allowDevServiceToCallWorkflowCode("recipes") +
    telemetryUrl

  lazy val presenceUrl: String = s"wss://presence.$domain/socket"
  lazy val presenceClientLib: String = s"https://presence.$domain/client/1/lib.js"

  lazy val preferencesHost: String = s"preferences.$domain"
  lazy val preferencesUrl: String = s"https://$preferencesHost/preferences"

  lazy val pinboardLoaderUrl: String = s"https://pinboard.$domain/pinboard.loader.js"

  lazy val tagManagerUrl: String = s"https://tagmanager.$domain"

  lazy val capiPreviewIamUrl: String = playConfig.get[String]("capi.preview.iamUrl")
  lazy val capiPreviewRole: String = playConfig.get[String]("capi.preview.role")

  lazy val sharedSecret: String = playConfig.get[String]("api.sharedsecret")

  lazy val incopyOpenUrl: String = "gnm://openinincopy/storybundle/${storyBundleId}/checkout/readwrite"
  lazy val incopyExportUrl: String = "gnm://composer/export/${composerId}"
  lazy val indesignExportUrl: String = "gnm://composerindesign/export/${composerId}"

  lazy val viewerUrl: String = s"https://viewer.$domain"

  lazy val storyPackagesUrl: String = s"https://packages.$domain"

  lazy val googleTrackingId: String = playConfig.get[String]("google.tracking.id")

  lazy val no2faUser: String = "composer.test@guardian.co.uk"

  lazy val editorialSupportDynamoTable: String = stage match {
    case Prod => "editorial-support-PROD"
    case _ => "editorial-support-CODE"
  }