open-pod/config/config.exs

40 lines
1.2 KiB
Elixir
Raw Normal View History

2020-05-22 22:04:15 +02:00
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
2020-06-08 23:37:11 +02:00
config :openpod,
ecto_repos: [Openpod.Repo]
2020-05-22 22:04:15 +02:00
# Configures the endpoint
2020-06-08 23:37:11 +02:00
config :openpod, OpenpodWeb.Endpoint,
2020-05-22 22:04:15 +02:00
url: [host: "localhost"],
secret_key_base: "SWl0xVj8AVXoc2G0eUk6VfeOd/lppjkaKbiHWs4ucxAUJ8+wzAEa4bMo0ZVjtVVk",
2020-06-08 23:37:11 +02:00
render_errors: [view: OpenpodWeb.ErrorView, accepts: ~w(html json), layout: false],
pubsub_server: Openpod.PubSub,
2020-05-22 22:04:15 +02:00
live_view: [signing_salt: "6jHv46Xw"]
2020-06-08 23:37:11 +02:00
config :openpod,
2020-06-07 21:37:41 +02:00
cache_duration: :timer.hours(24)
2020-05-22 22:04:15 +02: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
config :openpod, Openpod.Boundary.ArchiveScheduler,
jobs: [
{"0 6-18 * * *", {Openpod.Boundary.ArchiveReloader, :reload, []}},
]
2020-05-22 22:04:15 +02: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"