@@ -2,17 +2,8 @@ defmodule ExTURN.App do
2
2
@ moduledoc false
3
3
use Application
4
4
5
- require Logger
6
-
7
- @ version Mix.Project . config ( ) [ :version ]
8
-
9
5
@ impl true
10
6
def start ( _ , _ ) do
11
- Logger . info ( "Starting ExTURN v#{ @ version } ..." )
12
-
13
- listen_ip = Application . fetch_env! ( :ex_turn , :listen_ip )
14
- listen_port = Application . fetch_env! ( :ex_turn , :listen_port )
15
-
16
7
auth_provider_ip = Application . fetch_env! ( :ex_turn , :auth_provider_ip )
17
8
auth_provider_port = Application . fetch_env! ( :ex_turn , :auth_provider_port )
18
9
use_tls? = Application . fetch_env! ( :ex_turn , :auth_provider_use_tls? )
@@ -34,11 +25,9 @@ defmodule ExTURN.App do
34
25
end
35
26
36
27
children = [
28
+ ExTURN.Supervisor ,
37
29
{ TelemetryMetricsPrometheus ,
38
30
metrics: metrics ( ) , plug_cowboy_opts: [ ip: metrics_ip , port: metrics_port ] } ,
39
- { DynamicSupervisor , strategy: :one_for_one , name: ExTURN.AllocationSupervisor } ,
40
- { Registry , keys: :unique , name: Registry.Allocations } ,
41
- { ExTURN.Listener , [ listen_ip , listen_port ] } ,
42
31
{ Bandit ,
43
32
[ plug: ExTURN.AuthProvider , ip: auth_provider_ip , port: auth_provider_port ] ++ scheme_opts }
44
33
]
0 commit comments