mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-08 14:04:31 +08:00
Avoid compile-time dep on Livebook.Config
This commit is contained in:
parent
ce76af9432
commit
45c94789db
1 changed files with 3 additions and 2 deletions
|
@ -108,9 +108,10 @@ defmodule LivebookWeb.Endpoint do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Avoid compile-time deps on config as it is invoked as a MFA.
|
||||||
@plug_ssl Plug.SSL.init(
|
@plug_ssl Plug.SSL.init(
|
||||||
host: {Livebook.Config, :force_ssl_host, []},
|
host: {:"Elixir.Livebook.Config", :force_ssl_host, []},
|
||||||
rewrite_on: {Livebook.Config, :rewrite_on, []}
|
rewrite_on: {:"Elixir.Livebook.Config", :rewrite_on, []}
|
||||||
)
|
)
|
||||||
def force_ssl(conn, _opts) do
|
def force_ssl(conn, _opts) do
|
||||||
if Livebook.Config.force_ssl_host() do
|
if Livebook.Config.force_ssl_host() do
|
||||||
|
|
Loading…
Add table
Reference in a new issue