Packages

Support reverse proxying of websocket connections natively in Elixir

Current section

Files

Jump to

mix.exs

defmodule ReverseProxyPlugWebsocket.MixProject do
use Mix.Project
def project do
[
app: :reverse_proxy_plug_websocket,
description: "Support reverse proxying of websocket connections natively in Elixir",
version: "0.2.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.json": :test
],
aliases: aliases()
]
end
def application do
[
extra_applications: [:logger, :inets, :ssl]
]
end
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:plug, "~> 1.14"},
{:gun, "~> 2.0", optional: true},
{:websockex, "~> 0.4.3", optional: true},
{:websock_adapter, "~> 0.5"},
{:websock, "~> 0.5"},
{:ex_doc, "~> 0.30.0", only: :dev, runtime: false},
{:excoveralls, "~> 0.18", only: :test}
]
end
defp package do
[
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/mwhitworth/reverse_proxy_plug_websocket"}
]
end
defp aliases do
[
coverage: ["coveralls"],
"coverage.html": ["coveralls.html"],
"coverage.detail": ["coveralls.detail"]
]
end
end