mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
64 lines
1.7 KiB
Elixir
64 lines
1.7 KiB
Elixir
# This file is responsible for configuring your application
|
|
# and its dependencies with the aid of the Config module.
|
|
#
|
|
# This configuration file is loaded before any dependency and
|
|
# is restricted to this project.
|
|
|
|
# General application configuration
|
|
import Config
|
|
|
|
config :logger,
|
|
compile_time_purge_matching: [
|
|
[application: :remote_ip],
|
|
[application: :mint]
|
|
]
|
|
|
|
config :philomena,
|
|
ecto_repos: [Philomena.Repo]
|
|
|
|
config :elastix,
|
|
json_codec: Jason
|
|
|
|
config :exq,
|
|
max_retries: 5,
|
|
scheduler_enable: true,
|
|
start_on_application: false
|
|
|
|
config :canary,
|
|
repo: Philomena.Repo,
|
|
unauthorized_handler: {PhilomenaWeb.NotAuthorizedPlug, :call},
|
|
not_found_handler: {PhilomenaWeb.NotFoundPlug, :call}
|
|
|
|
# Configures the endpoint
|
|
config :philomena, PhilomenaWeb.Endpoint,
|
|
url: [host: "localhost"],
|
|
secret_key_base: "xZYTon09JNRrj8snd7KL31wya4x71jmo5aaSSRmw1dGjWLRmEwWMTccwxgsGFGjM",
|
|
render_errors: [view: PhilomenaWeb.ErrorView, accepts: ~w(html json)],
|
|
pubsub_server: Philomena.PubSub
|
|
|
|
# Markdown
|
|
config :philomena, Philomena.Native,
|
|
crate: "philomena",
|
|
mode: :release
|
|
|
|
config :phoenix, :template_engines,
|
|
slim: PhoenixSlime.Engine,
|
|
slime: PhoenixSlime.Engine,
|
|
slimleex: PhoenixSlime.LiveViewEngine
|
|
|
|
config :tesla, adapter: Tesla.Adapter.Mint
|
|
|
|
# Configures Elixir's Logger
|
|
config :logger, :console,
|
|
format: "$time $metadata[$level] $message\n",
|
|
handle_otp_reports: true,
|
|
handle_sasl_reports: true,
|
|
metadata: [:request_id],
|
|
truncate: :infinity
|
|
|
|
# Use Jason for JSON parsing in Phoenix
|
|
config :phoenix, :json_library, Jason
|
|
|
|
# Import environment specific config. This must remain at the bottom
|
|
# of this file so it overrides the configuration defined above.
|
|
import_config "#{config_env()}.exs"
|