Skip to content

Commit

Permalink
Bind to http host to 0.0.0.0
Browse files Browse the repository at this point in the history
Co-authored-by: Trevor Fitzgerald <fitztrev@users.noreply.github.com>
  • Loading branch information
lenguyenthanh and fitztrev authored Nov 24, 2023
1 parent 3c465cd commit cc642b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/scala/Config.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ case class AppConfig(redis: RedisConfig, server: HttpServerConfig, kamon: KamonC
case class HttpServerConfig(host: Host, port: Port)

object HttpServerConfig:
def host = env("HTTP_HOST").or(prop("http.host")).as[Host].default(ip"127.0.0.1")
def host = env("HTTP_HOST").or(prop("http.host")).as[Host].default(ip"0.0.0.0")
def port = env("HTTP_PORT").or(prop("http.port")).as[Port].default(port"9665")
def config = (host, port).parMapN(HttpServerConfig.apply)

Expand Down

0 comments on commit cc642b2

Please sign in to comment.