philomena/config/config.exs

64 lines
1.7 KiB
Elixir
Raw Normal View History

2019-08-15 02:32:32 +02:00
# This file is responsible for configuring your application
2019-12-04 16:35:16 +01:00
# and its dependencies with the aid of the Config module.
2019-08-15 02:32:32 +02:00
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
2019-12-04 16:35:16 +01:00
import Config
2019-08-15 02:32:32 +02:00
2020-10-26 22:01:29 +01:00
config :logger,
compile_time_purge_matching: [
[application: :remote_ip],
[application: :mint]
]
2019-08-15 02:32:32 +02:00
config :philomena,
2020-10-26 22:01:29 +01:00
ecto_repos: [Philomena.Repo]
2020-05-27 23:04:55 +02:00
config :exq,
2020-12-06 17:42:14 +01:00
max_retries: 5,
2020-05-27 23:04:55 +02:00
scheduler_enable: true,
start_on_application: false
2019-10-04 01:58:54 +02:00
config :canary,
2019-12-02 03:30:58 +01:00
repo: Philomena.Repo,
unauthorized_handler: {PhilomenaWeb.NotAuthorizedPlug, :call},
not_found_handler: {PhilomenaWeb.NotFoundPlug, :call}
2019-10-04 01:58:54 +02:00
2019-08-15 02:32:32 +02:00
# Configures the endpoint
config :philomena, PhilomenaWeb.Endpoint,
2024-06-20 22:20:36 +02:00
adapter: Bandit.PhoenixAdapter,
2019-08-15 02:32:32 +02:00
url: [host: "localhost"],
secret_key_base: "xZYTon09JNRrj8snd7KL31wya4x71jmo5aaSSRmw1dGjWLRmEwWMTccwxgsGFGjM",
2020-06-12 18:56:11 +02:00
render_errors: [view: PhilomenaWeb.ErrorView, accepts: ~w(html json)],
pubsub_server: Philomena.PubSub
2019-08-15 02:32:32 +02:00
2024-06-20 22:11:39 +02:00
# Configure only SMTP for mailing, not HTTP
config :swoosh, :api_client, false
2021-09-11 02:37:13 +02:00
# Markdown
config :philomena, Philomena.Native,
crate: "philomena",
2021-09-11 02:37:13 +02:00
mode: :release
2019-08-16 02:28:12 +02:00
config :phoenix, :template_engines,
slim: PhoenixSlime.Engine,
slime: PhoenixSlime.Engine,
slimleex: PhoenixSlime.LiveViewEngine
2019-08-15 02:32:32 +02:00
# Configures Elixir's Logger
config :logger, :console,
format: "$time $metadata[$level] $message\n",
handle_otp_reports: true,
handle_sasl_reports: true,
2019-12-20 18:13:03 +01:00
metadata: [:request_id],
truncate: :infinity
2019-08-15 02:32:32 +02:00
# 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.
2020-10-26 22:01:29 +01:00
import_config "#{config_env()}.exs"