1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Pool.Supervisor do
11 def start_link(args) do
12 Supervisor.start_link(__MODULE__, args, name: __MODULE__)
21 {Pool.Connections, :start_link, [{:gun_connections, Config.get([:connections_pool])}]}
25 Supervisor.init(children, strategy: :one_for_one)
29 pools = Config.get(:pools)
32 if Config.get([Pleroma.Upload, :proxy_remote]) == false do
33 Keyword.delete(pools, :upload)
38 for {pool_name, pool_opts} <- pools do
40 |> Keyword.put(:id, {Pool, pool_name})
41 |> Keyword.put(:name, pool_name)