All Downloads are FREE. Search and download functionalities are using the official Maven repository.

harness.http.server.ServerConfig.scala Maven / Gradle / Ivy

There is a newer version: 5.1.3
Show newest version
package harness.http.server

import harness.cli.*
import zio.json.*

final case class ServerConfig(
    port: Option[Int],
    resDir: String,
    useJarResource: Boolean,
    ssl: Option[ServerConfig.SslConfig],
    // TODO (KR) : Options relating to logging requests
)
object ServerConfig {

  final case class SslConfig(
      keyPath: String,
      keyPassword: String,
  )
  object SslConfig {
    implicit val jsonCodec: JsonCodec[SslConfig] = DeriveJsonCodec.gen
  }

  implicit val jsonCodec: JsonCodec[ServerConfig] = DeriveJsonCodec.gen

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy