-
Notifications
You must be signed in to change notification settings - Fork 10
/
mix.exs
58 lines (54 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
52
53
54
55
56
57
58
defmodule Plug.Cloudflare.Mixfile do
use Mix.Project
@source_url "https://github.com/c-rack/plug_cloudflare"
@version "1.3.0"
def project do
[
app: :plug_cloudflare,
build_embedded: Mix.env() == :prod,
deps: [
{:cidr, ">= 1.1.0"},
{:credo, ">= 0.3.5", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: [:dev]},
{:plug, ">= 1.1.2"},
],
docs: docs(),
description: """
Convert CloudFlare's CF-Connecting-IP header to Plug.Conn's remote_ip field.
""",
elixir: ">= 1.0.2",
package: %{
maintainers: ["Constantin Rack"],
files: [
"ips-v4",
"ips-v6",
"lib",
"mix.exs",
"LICENSE",
"README.md"
],
licenses: ["Apache-2.0"],
links: %{
"GitHub" => @source_url
}
},
start_permanent: Mix.env() == :prod,
version: @version
]
end
def application do
[applications: [:cidr, :plug]]
end
defp docs do
[
extras: [
LICENSE: [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "#{@version}",
formatters: ["html"]
]
end
end