Skip to content

Commit 94f1d7f

Browse files
author
Your Name
committed
Switch registry gateway to Bandit
1 parent 925502e commit 94f1d7f

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

opsm_ex/lib/opsm/application.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule Opsm.Application do
1212
def start(_type, _args) do
1313
children = [
1414
RegistryGateway.Store,
15-
{Plug.Cowboy, scheme: :http, plug: RegistryGateway.Router, options: [port: registry_port()]}
15+
{Bandit, plug: RegistryGateway.Router, scheme: :http, port: registry_port(), ip: {127, 0, 0, 1}}
1616
]
1717

1818
opts = [strategy: :one_for_one, name: Opsm.Supervisor]

opsm_ex/mix.exs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ defmodule Opsm.MixProject do
2929
{:jason, "~> 1.4"},
3030
{:stream_data, "~> 0.6", only: :test},
3131
{:plug, "~> 1.15"},
32-
{:plug_cowboy, "~> 2.7"},
3332
{:bandit, "~> 1.5"}
3433
]
3534
end

0 commit comments

Comments
 (0)