summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-03-27 16:09:08 +0200
committerlain <lain@soykaf.club>2018-03-27 16:09:08 +0200
commitfbc187ac15524638db2b116ed2b7365aaecdf2e4 (patch)
tree55bae8a332a91fef360a00c3991f62ae86aa2161 /config
parentc6cd1a56f03193062edd257fe90048f4df39f20c (diff)
downloadpleroma-fbc187ac15524638db2b116ed2b7365aaecdf2e4.tar.gz
pleroma-fbc187ac15524638db2b116ed2b7365aaecdf2e4.zip
Switch to Jason for json handling.
It's twice as fast and will be the standard in the coming ecto.
Diffstat (limited to 'config')
-rw-r--r--config/config.exs8
1 files changed, 8 insertions, 0 deletions
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"