Cowboy handler for Mastodon WebSocket

This commit is contained in:
href 2018-12-17 14:39:59 +01:00
commit 77b5154c82
No known key found for this signature in database
GPG key ID: EE8296C1A152C325
5 changed files with 141 additions and 86 deletions

View file

@ -50,6 +50,15 @@ config :pleroma, :uri_schemes,
# Configures the endpoint
config :pleroma, Pleroma.Web.Endpoint,
url: [host: "localhost"],
http: [
dispatch: [
{:_,
[
{"/api/v1/streaming", Elixir.Pleroma.Web.MastodonAPI.WebsocketHandler, []},
{:_, Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}}
]}
]
],
protocol: "https",
secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
signing_salt: "CqaoopA2",