Roadrunner.PhoenixAdapter (Roadrunner.Plug v0.1.0)

Copy Markdown View Source

A Phoenix endpoint adapter that serves the endpoint with Roadrunner.

# config/config.exs
config :my_app, MyAppWeb.Endpoint,
  adapter: Roadrunner.PhoenixAdapter,
  url: [host: "localhost"]

The endpoint's :http and :https keyword lists are Roadrunner.Plug options: :ip and :port as in a generated Phoenix app, the TLS keys (:keyfile, :certfile, ...) under :https, and :roadrunner for any other listener option.

Summary

Functions

The address and port the endpoint's scheme listener is bound to.

Functions

server_info(endpoint, scheme)

@spec server_info(module(), :http | :https) ::
  {:ok, {:inet.ip_address(), :inet.port_number()}} | {:error, term()}

The address and port the endpoint's scheme listener is bound to.