You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement the main proxy in order to dispatch http requests among an api and backoffice app. I followed the documentation steps as it is, but the project runs to fail
Versions:
main_proxy 0.2.0
phoenix 1.6.15
plug_cowboy 2.6.0
Application file
defmodule MasterProxy.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
MasterProxy.Proxy
]
opts = [strategy: :one_for_one, name: MasterProxy.Supervisor]
Supervisor.start_link(children, opts)
end
end
defmodule MasterProxy.Proxy do
use MainProxy.Proxy
@impl MainProxy.Proxy
def backends do
[
%{
host: ~r{^api\*_$},
phoenix_endpoint: HttpApiWeb.Endpoint
}
]
end
end
I'm trying to implement the main proxy in order to dispatch http requests among an
api
andbackoffice
app. I followed the documentation steps as it is, but the project runs to failVersions:
Application file
config.exs
Proxy module
Issue
The text was updated successfully, but these errors were encountered: