forked from slogsdon/elixir-reverse-proxy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
51 lines (42 loc) · 1.25 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
defmodule ReverseProxy.Mixfile do
use Mix.Project
def project do
[app: :reverse_proxy,
version: "0.1.0-dev",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
name: "ReverseProxy",
description: description,
package: package,
docs: [readme: "README.md", main: "README"],
test_coverage: [tool: ExCoveralls]]
end
def application do
[applications: [:logger, :plug, :cowboy, :httpoison],
mod: {ReverseProxy, []}]
end
defp deps do
[{:plug, "~> 0.14.0"},
{:cowboy, "~> 1.0.2"},
{:httpoison, "~> 0.7.1"},
{:earmark, "~> 0.1.17", only: :docs},
{:ex_doc, "~> 0.7.3", only: :docs},
{:excoveralls, "~> 0.3.11", only: :test},
{:dialyze, "~> 0.2.0", only: :test}]
end
defp description do
"""
A Plug based, reverse proxy server.
Upstream servers can be listed per-domain in the following forms:
- List of remote nodes, e.g. `["host:4000", "host:4001"]`
- A `{plug, options}` tuple, useful for umbrella applications
"""
end
defp package do
%{contributors: ["Shane Logsdon"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/slogsdon/elixir-reverse-proxy"}}
end
end