forked from ajvondrak/remote_ip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
42 lines (37 loc) · 866 Bytes
/
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
defmodule RemoteIp.Mixfile do
use Mix.Project
def project do
[
app: :remote_ip,
version: "0.1.5",
elixir: "~> 1.3",
package: package(),
description: description(),
deps: deps(),
docs: [source_url: "https://github.com/ajvondrak/remote_ip"]
]
end
def application do
[applications: [:plug]]
end
defp description do
"A plug to overwrite the Conn's remote_ip based on headers such as " <>
"X-Forwarded-For."
end
defp package do
%{
files: ~w[lib mix.exs README.md LICENSE],
maintainers: ["Alex Vondrak"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/ajvondrak/remote_ip"}
}
end
defp deps do
[
{:combine, "~> 0.10"},
{:plug, "~> 1.2"},
{:inet_cidr, "~> 1.0"},
{:ex_doc, "~> 0.14", only: :dev}
]
end
end