Merge remote-tracking branch 'upstream/develop' into develop
[akkoma] / lib / pleroma / web / endpoint.ex
index 75484fac5ee768c401082a4f9ab5e3183ab3a589..9d73cf0f8a30c0fdf88d990775020eadac907bc1 100644 (file)
@@ -68,6 +68,18 @@ defmodule Pleroma.Web.Endpoint do
     }
   )
 
+  plug(Plug.Static.IndexHtml, at: "/pleroma/fedife/")
+
+  plug(Pleroma.Web.Plugs.FrontendStatic,
+    at: "/pleroma/fedife",
+    frontend_type: :fedife,
+    gzip: true,
+    cache_control_for_etags: @static_cache_control,
+    headers: %{
+      "cache-control" => @static_cache_control
+    }
+  )
+
   # Serve at "/" the static files from "priv/static" directory.
   #
   # You should set gzip to true if you are running phoenix.digest