Maru v0.13.2 Maru.Server View Source
Defines a server.
When used, the server expects the :otp_app
as option. The :otp_app
should point to an OTP application that has the server configuration. For example, the server:
defmodule MyServer do
use Maru.Server, otp_app: :my_api
end
Could be configured with:
config :my_api, MyServer,
adapter: Plug.Adapters.Cowboy2,
plug: MyAPI,
port: 8080,
scheme: :http,
bind_addr: "0.0.0.0"