mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-10 17:15:09 +08:00
43 lines
1.2 KiB
Elixir
43 lines
1.2 KiB
Elixir
import Config
|
|
|
|
# Configures the endpoint
|
|
config :livebook, LivebookWeb.Endpoint,
|
|
url: [host: "localhost", path: "/"],
|
|
pubsub_server: Livebook.PubSub,
|
|
live_view: [signing_salt: "livebook"],
|
|
drainer: [shutdown: 1000],
|
|
render_errors: [formats: [html: LivebookWeb.ErrorHTML], layout: false]
|
|
|
|
# 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
|
|
|
|
# Add mime type to upload notebooks with `Phoenix.LiveView.Upload`
|
|
config :mime, :types, %{
|
|
"text/plain" => ["livemd"]
|
|
}
|
|
|
|
# We want CSRF tokens to be logged to help users with debugging
|
|
config :plug_cowboy, :log_exceptions_with_status_code, [407..599]
|
|
|
|
config :livebook,
|
|
teams_url: nil,
|
|
app_service_name: nil,
|
|
app_service_url: nil,
|
|
authentication_mode: :token,
|
|
feature_flags: [],
|
|
force_ssl_host: nil,
|
|
learn_notebooks: [],
|
|
plugs: [],
|
|
shutdown_callback: nil,
|
|
update_instructions_url: nil,
|
|
within_iframe: false,
|
|
allowed_uri_schemes: []
|
|
|
|
# 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"
|