Skip to content

Commit

Permalink
CA
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Jul 17, 2023
1 parent 1bec73d commit 1904010
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/app.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule CA do
def init([]), do: {:ok, { {:one_for_one, 5, 10}, []} }
def port(), do: :application.get_env(:ca, :port, 8046)
def start(_type, _args) do
{:ok, _} = :cowboy.start_clear(:http,[{:port,port()}],%{env: %{dispatch: :ca_enroll.boot()}})
# {:ok, _} = :cowboy.start_clear(:http,[{:port,port()}],%{env: %{dispatch: :ca_enroll.boot()}})
:supervisor.start_link({:local, __MODULE__}, __MODULE__, [])
end
end
4 changes: 1 addition & 3 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ defmodule CA.Mixfile do
]
end

def application(), do: [mod: {CA, []}, applications: [:ranch,:cowboy,:x509]]
def application(), do: [mod: {CA, []}, applications: [:x509]]

def deps() do
[
{:cowboy, "~> 2.5.0"},
{:cowlib, "~> 2.6.0"},
{:x509, "~> 0.8.7"},
{:ex_doc, "~> 0.11", only: :dev}
]
Expand Down

0 comments on commit 1904010

Please sign in to comment.