mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-21 23:44:30 +00:00
Clean some unused config key
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
6a063cf655
commit
882661e22c
2 changed files with 1 additions and 6 deletions
|
@ -92,8 +92,7 @@ config :mobilizon, :media_proxy,
|
|||
follow_redirect: true,
|
||||
pool: :media
|
||||
]
|
||||
],
|
||||
whitelist: []
|
||||
]
|
||||
|
||||
config :mobilizon, Mobilizon.Web.Email.Mailer,
|
||||
adapter: Bamboo.SMTPAdapter,
|
||||
|
|
|
@ -29,10 +29,6 @@ defmodule Mobilizon.Web.MediaProxy do
|
|||
|
||||
def enabled?, do: Config.get([:media_proxy, :enabled], false)
|
||||
|
||||
# Note: media proxy must be enabled for media preview proxy in order to load all
|
||||
# non-local non-whitelisted URLs through it and be sure that body size constraint is preserved.
|
||||
def preview_enabled?, do: enabled?() and !!Config.get([:media_preview_proxy, :enabled])
|
||||
|
||||
def local?(url), do: String.starts_with?(url, Web.Endpoint.url())
|
||||
|
||||
defp base64_sig64(url) do
|
||||
|
|
Loading…
Reference in a new issue