2021-02-16 19:29:41 +08:00
|
|
|
import Config
|
2021-01-08 03:55:45 +08:00
|
|
|
|
|
|
|
# Configures the endpoint
|
2021-03-04 05:56:28 +08:00
|
|
|
config :livebook, LivebookWeb.Endpoint,
|
2022-11-30 06:34:38 +08:00
|
|
|
url: [host: "localhost", path: "/"],
|
2021-03-04 05:56:28 +08:00
|
|
|
pubsub_server: Livebook.PubSub,
|
2023-03-16 03:59:57 +08:00
|
|
|
live_view: [signing_salt: "livebook"],
|
2023-03-26 04:52:18 +08:00
|
|
|
drainer: [shutdown: 1000],
|
|
|
|
render_errors: [formats: [html: LivebookWeb.ErrorHTML], layout: false]
|
2021-01-08 03:55:45 +08:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2021-11-01 20:59:39 +08:00
|
|
|
# Add mime type to upload notebooks with `Phoenix.LiveView.Upload`
|
|
|
|
config :mime, :types, %{
|
|
|
|
"text/plain" => ["livemd"]
|
|
|
|
}
|
|
|
|
|
2022-11-22 23:38:49 +08:00
|
|
|
# We want CSRF tokens to be logged to help users with debugging
|
|
|
|
config :plug_cowboy, :log_exceptions_with_status_code, [407..599]
|
|
|
|
|
2022-04-14 21:52:28 +08:00
|
|
|
config :livebook,
|
2023-07-29 03:40:18 +08:00
|
|
|
teams_url: "https://teams.livebook.dev",
|
2022-04-15 19:46:26 +08:00
|
|
|
app_service_name: nil,
|
|
|
|
app_service_url: nil,
|
2022-04-14 21:52:28 +08:00
|
|
|
authentication_mode: :token,
|
2022-08-18 21:34:27 +08:00
|
|
|
feature_flags: [],
|
2022-11-10 23:03:50 +08:00
|
|
|
force_ssl_host: nil,
|
|
|
|
learn_notebooks: [],
|
2022-04-14 21:52:28 +08:00
|
|
|
plugs: [],
|
2022-11-11 01:09:01 +08:00
|
|
|
shutdown_callback: nil,
|
2022-11-10 23:03:50 +08:00
|
|
|
update_instructions_url: nil,
|
2023-02-16 05:16:38 +08:00
|
|
|
within_iframe: false,
|
|
|
|
allowed_uri_schemes: []
|
2021-11-03 05:32:58 +08:00
|
|
|
|
2021-01-08 03:55:45 +08:00
|
|
|
# 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"
|