X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Fendpoint.ex;h=0cb6aff160afd0620976fd4278b52db5d3fd2593;hb=0c0ea169d4be469921f8bbb72995f3d5bff87b0d;hp=8e274de889522ffd1771b6e84fe4595bd69f7783;hpb=e2d7c4fd570cf3d4af649bc4a98c927b38088bc2;p=akkoma diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex index 8e274de88..0cb6aff16 100644 --- a/lib/pleroma/web/endpoint.ex +++ b/lib/pleroma/web/endpoint.ex @@ -67,6 +67,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