mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-10 00:47:45 +08:00
ac60aba2fb
* Make it possible to configure custom plug for all requests * Apply review comments * Use fetch_env!
38 lines
1.2 KiB
Elixir
38 lines
1.2 KiB
Elixir
import Config
|
|
|
|
# Configures the endpoint
|
|
config :livebook, LivebookWeb.Endpoint,
|
|
url: [host: "localhost"],
|
|
pubsub_server: Livebook.PubSub,
|
|
live_view: [signing_salt: "livebook"]
|
|
|
|
# Configures Elixir's Logger
|
|
config :logger, :console,
|
|
format: "$time $metadata[$level] $message\n",
|
|
metadata: [:request_id]
|
|
|
|
# Use Jason for JSON parsing in Phoenix
|
|
config :phoenix, :json_library, Jason
|
|
|
|
# Sets the default authentication mode to token
|
|
config :livebook, :authentication_mode, :token
|
|
|
|
# Sets the default runtime to ElixirStandalone.
|
|
# This is the desired default most of the time,
|
|
# but in some specific use cases you may want
|
|
# to configure that to the Embedded or Mix runtime instead.
|
|
# Also make sure the configured runtime has
|
|
# a synchronous `init` function that takes the
|
|
# configured arguments.
|
|
config :livebook, :default_runtime, {Livebook.Runtime.ElixirStandalone, []}
|
|
|
|
# A list of custom plugs in the following format:
|
|
#
|
|
# [{plug_module :: module(), opts :: keyword()}]
|
|
#
|
|
# The plugs are called directly before the Livebook router.
|
|
config :livebook, :plugs, []
|
|
|
|
# Import environment specific config. This must remain at the bottom
|
|
# of this file so it overrides the configuration defined above.
|
|
import_config "#{Mix.env()}.exs"
|