aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/endpoint.ex
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-08-25 11:57:23 -0500
committerMark Felder <feld@FreeBSD.org>2020-08-25 11:57:23 -0500
commit479578b148f28f311a7d20f6da99bbc0dab1652c (patch)
tree2b0e5bfe6bfa5c4b954b9442d4d2a1d4ad4bc8cf /lib/pleroma/web/endpoint.ex
parent98f8851f29f940051656caa1715820bce70f8c29 (diff)
parent361aa22e2862c1c914baf8257fdc8b20cbc7941d (diff)
downloadpleroma-479578b148f28f311a7d20f6da99bbc0dab1652c.tar.gz
Merge branch 'develop' into feld-2168-media-preview-proxy
Diffstat (limited to 'lib/pleroma/web/endpoint.ex')
-rw-r--r--lib/pleroma/web/endpoint.ex14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex
index 527fb288d..8b153763d 100644
--- a/lib/pleroma/web/endpoint.ex
+++ b/lib/pleroma/web/endpoint.ex
@@ -39,6 +39,18 @@ defmodule Pleroma.Web.Endpoint do
}
)
+ plug(Plug.Static.IndexHtml, at: "/pleroma/admin/")
+
+ plug(Pleroma.Plugs.FrontendStatic,
+ at: "/pleroma/admin",
+ frontend_type: :admin,
+ 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
@@ -56,8 +68,6 @@ defmodule Pleroma.Web.Endpoint do
}
)
- plug(Plug.Static.IndexHtml, at: "/pleroma/admin/")
-
plug(Plug.Static,
at: "/pleroma/admin/",
from: {:pleroma, "priv/static/adminfe/"}