aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/endpoint.ex
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-05-01 21:15:43 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-05-02 08:28:42 +0200
commitc6ddfa8f9594377e6e0b424759d1fdbda9c9a005 (patch)
tree6a7449bbc058f801b37add731b965a5f73e9729f /lib/pleroma/web/endpoint.ex
parented8282c0910e5a07b87a6efbf4eb34208a8f39e1 (diff)
downloadpleroma-c6ddfa8f9594377e6e0b424759d1fdbda9c9a005.tar.gz
static-fe.css: Restore and move to /priv/static/static-fe
Diffstat (limited to 'lib/pleroma/web/endpoint.ex')
-rw-r--r--lib/pleroma/web/endpoint.ex5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex
index 72cb3ee27..226d42c2c 100644
--- a/lib/pleroma/web/endpoint.ex
+++ b/lib/pleroma/web/endpoint.ex
@@ -5,6 +5,8 @@
defmodule Pleroma.Web.Endpoint do
use Phoenix.Endpoint, otp_app: :pleroma
+ require Pleroma.Constants
+
socket("/socket", Pleroma.Web.UserSocket)
plug(Pleroma.Plugs.SetLocalePlug)
@@ -34,8 +36,7 @@ defmodule Pleroma.Web.Endpoint do
Plug.Static,
at: "/",
from: :pleroma,
- only:
- ~w(index.html robots.txt static finmoji emoji packs sounds images instance sw.js sw-pleroma.js favicon.png schemas doc),
+ only: Pleroma.Constants.static_only_files(),
# credo:disable-for-previous-line Credo.Check.Readability.MaxLineLength
gzip: true,
cache_control_for_etags: @static_cache_control,