Enable strict validation mode in dev and test environments

This commit is contained in:
Egor Kislitsyn 2020-05-04 22:35:28 +04:00
parent e55fd530bc
commit 1cb89aac1e
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
2 changed files with 4 additions and 0 deletions

View file

@ -52,6 +52,8 @@
hostname: "localhost",
pool_size: 10
config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
if File.exists?("./config/dev.secret.exs") do
import_config "dev.secret.exs"
else

View file

@ -96,6 +96,8 @@
config :pleroma, Pleroma.Plugs.RemoteIp, enabled: false
config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
if File.exists?("./config/test.secret.exs") do
import_config "test.secret.exs"
else