Some checks failed
Build and Publish / build-release (push) Failing after 5s
21 lines
574 B
Elixir
21 lines
574 B
Elixir
defmodule ProviderService.Application do
|
|
use Application
|
|
|
|
def start(_type, _args) do
|
|
children = [
|
|
ProviderService.Repo,
|
|
ProviderService.CommandedApp,
|
|
ProviderService.Projections.ProviderProjection,
|
|
{Oidcc.ProviderConfiguration.Worker,
|
|
%{
|
|
issuer: Application.get_env(:provider_service, :zitadel)[:issuer],
|
|
name: ProviderService.ZitadelProvider
|
|
}},
|
|
ProviderServiceWeb.Endpoint
|
|
]
|
|
|
|
opts = [strategy: :one_for_one, name: ProviderService.Supervisor]
|
|
Supervisor.start_link(children, opts)
|
|
end
|
|
end
|