summaryrefslogtreecommitdiff
path: root/config/config.exs
diff options
context:
space:
mode:
authorhref <href@random.sh>2018-02-02 21:35:46 +0100
committerhref <href@random.sh>2018-02-02 21:35:46 +0100
commitc98ddad3263f6859af3c5c76fa197876743d5ded (patch)
tree9e20617da1089e918e0445162dc9bd8eb54f3459 /config/config.exs
parentimport (diff)
sse / embedded player
Diffstat (limited to '')
-rw-r--r--config/config.exs3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs
index e27883b..c2c07be 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -14,6 +14,7 @@ config :lsg, LSGWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "cAFb7x2p/D7PdV8/C6Os18uygoD0FVQh3efNEFc5+5L529q3dofZtZye/BG12MRZ",
render_errors: [view: LSGWeb.ErrorView, accepts: ~w(html json)],
+ server: true,
pubsub: [name: LSG.PubSub,
adapter: Phoenix.PubSub.PG2]
@@ -22,6 +23,8 @@ config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id]
+config :mime, :types, %{"text/event-stream" => ["sse"]}
+
# 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"