Add swaggerUI options #66

Merged
floatingghost merged 5 commits from swagger-ui into develop 2022-07-13 15:09:35 +00:00
1 changed files with 11 additions and 1 deletions
Showing only changes of commit a2f2df709c - Show all commits

View File

@ -82,7 +82,17 @@ defmodule Pleroma.Application do
# See http://elixir-lang.org/docs/stable/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: Pleroma.Supervisor]
# If we have a lot of caches, default max_restarts can cause test
# resets to fail.
# Go for the default 3 unless we're in test
max_restarts =
if @mix_env == :test do
100
else
3
end
opts = [strategy: :one_for_one, name: Pleroma.Supervisor, max_restarts: max_restarts]
result = Supervisor.start_link(children, opts)
set_postgres_server_version()