diff options
author | href <href@random.sh> | 2018-02-02 21:35:46 +0100 |
---|---|---|
committer | href <href@random.sh> | 2018-02-02 21:35:46 +0100 |
commit | c98ddad3263f6859af3c5c76fa197876743d5ded (patch) | |
tree | 9e20617da1089e918e0445162dc9bd8eb54f3459 /config | |
parent | import (diff) |
sse / embedded player
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 3 | ||||
-rw-r--r-- | config/prod.exs | 7 |
2 files changed, 6 insertions, 4 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" diff --git a/config/prod.exs b/config/prod.exs index aa0f833..3db7afd 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -14,12 +14,11 @@ use Mix.Config # manifest is generated by the mix phx.digest task # which you typically run after static files are built. config :lsg, LSGWeb.Endpoint, - load_from_system_env: true, - url: [host: "example.com", port: 80], - cache_static_manifest: "priv/static/cache_manifest.json" + url: [host: "lsg.goulag.org", port: 443], + http: [ip: {0,0,0,0}, port: 4000] # Do not print debug messages in production -config :logger, level: :info +config :logger, level: :debug # ## SSL Support # |