From fbc187ac15524638db2b116ed2b7365aaecdf2e4 Mon Sep 17 00:00:00 2001 From: lain Date: Tue, 27 Mar 2018 16:09:08 +0200 Subject: Switch to Jason for json handling. It's twice as fast and will be the standard in the coming ecto. --- config/config.exs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config') diff --git a/config/config.exs b/config/config.exs index bd714a189..a7429fcdf 100644 --- a/config/config.exs +++ b/config/config.exs @@ -9,6 +9,9 @@ use Mix.Config config :pleroma, ecto_repos: [Pleroma.Repo] +config :pleroma, Pleroma.Repo, + types: Pleroma.PostgresTypes + config :pleroma, Pleroma.Upload, uploads: "uploads" @@ -61,6 +64,11 @@ config :pleroma, :media_proxy, config :pleroma, :chat, enabled: true +config :ecto, json_library: Jason + +config :phoenix, :format_encoders, + json: Jason + # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "#{Mix.env}.exs" -- cgit v1.2.3