Merge branch 'bugfix/ostatus-as2-reflection' into 'develop'
[akkoma] / lib / pleroma / web / endpoint.ex
index 6e60c90173a041e3459d748c2be8fdb6fb8dbc8f..cb5de087b4333a5f7f785a3c39d8ba7430ac5025 100644 (file)
@@ -11,13 +11,16 @@ defmodule Pleroma.Web.Endpoint do
   #
   # You should set gzip to true if you are running phoenix.digest
   # when deploying your static files in production.
-  plug(Plug.Static, at: "/media", from: Pleroma.Upload.upload_path(), gzip: false)
+  plug(CORSPlug)
+
+  plug(Plug.Static, at: "/media", from: Pleroma.Uploaders.Local.upload_path(), gzip: false)
 
   plug(
     Plug.Static,
     at: "/",
     from: :pleroma,
-    only: ~w(index.html static finmoji emoji packs sounds images instance sw.js favicon.png)
+    only:
+      ~w(index.html static finmoji emoji packs sounds images instance sw.js favicon.png schemas)
   )
 
   # Code reloading can be explicitly enabled under the