diff options
author | href <href@random.sh> | 2018-12-17 14:39:59 +0100 |
---|---|---|
committer | href <href@random.sh> | 2018-12-17 17:06:18 +0100 |
commit | 77b5154c825e2ff5996f170c03657eaadcef4680 (patch) | |
tree | 0087ee04cb908051db50d0eb875dcc10302cc952 /config/config.exs | |
parent | 5dcb7aeceacc61beb99466c086ea26b5ae8d947a (diff) | |
download | pleroma-77b5154c825e2ff5996f170c03657eaadcef4680.tar.gz pleroma-77b5154c825e2ff5996f170c03657eaadcef4680.zip |
Cowboy handler for Mastodon WebSocket
Diffstat (limited to 'config/config.exs')
-rw-r--r-- | config/config.exs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs index 1777a54c0..df6ea09ae 100644 --- a/config/config.exs +++ b/config/config.exs @@ -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", |