diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-02-28 15:43:38 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-02-28 15:44:12 +0000 |
commit | 9aec00d71101b848aab6b61ad6c5335284fb339b (patch) | |
tree | 141d16834a821c9b507cb6bfb8c15bb15a1e323e | |
parent | bc53dff5b6c7814a1cfeca43fc2a843e1e306501 (diff) | |
download | pleroma-9aec00d71101b848aab6b61ad6c5335284fb339b.tar.gz |
config: update config for cowboy 2 endpoints
-rw-r--r-- | config/config.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/config.exs b/config/config.exs index 7e4ac1100..374b4d86b 100644 --- a/config/config.exs +++ b/config/config.exs @@ -93,10 +93,10 @@ config :pleroma, Pleroma.Web.Endpoint, dispatch: [ {:_, [ - {"/api/v1/streaming", Elixir.Pleroma.Web.MastodonAPI.WebsocketHandler, []}, - {"/socket/websocket", Phoenix.Endpoint.CowboyWebSocket, + {"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []}, + {"/socket/websocket", Phoenix.Endpoint.CowboyWebsocket, {nil, {Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}}, - {:_, Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}} + {:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}} ]} ] ], |