2019-12-04 16:35:16 +01:00
|
|
|
import Config
|
2019-08-15 02:32:32 +02:00
|
|
|
|
2020-07-28 22:56:26 +02:00
|
|
|
# Only in tests, remove the complexity from the password hashing algorithm
|
|
|
|
config :bcrypt_elixir, :log_rounds, 1
|
|
|
|
|
2019-08-15 02:32:32 +02:00
|
|
|
# Configure your database
|
|
|
|
config :philomena, Philomena.Repo,
|
2020-04-11 20:54:55 +02:00
|
|
|
username: "postgres",
|
|
|
|
password: "postgres",
|
|
|
|
database: "philomena_test",
|
2019-08-15 02:32:32 +02:00
|
|
|
pool: Ecto.Adapters.SQL.Sandbox
|
|
|
|
|
2020-05-27 23:34:44 +02:00
|
|
|
config :philomena,
|
2020-07-28 22:56:26 +02:00
|
|
|
elasticsearch_url: "http://elasticsearch:9200",
|
|
|
|
redis_host: "redis",
|
|
|
|
pwned_passwords: false,
|
|
|
|
captcha: false
|
2020-05-27 23:34:44 +02:00
|
|
|
|
|
|
|
config :exq,
|
|
|
|
host: "redis"
|
|
|
|
|
2020-07-28 22:56:26 +02:00
|
|
|
config :philomena, Philomena.Mailer, adapter: Bamboo.LocalAdapter
|
|
|
|
config :philomena, :mailer_address, "test@philomena.lc"
|
|
|
|
|
2019-08-15 02:32:32 +02:00
|
|
|
# We don't run a server during test. If one is required,
|
|
|
|
# you can enable the server option below.
|
|
|
|
config :philomena, PhilomenaWeb.Endpoint,
|
|
|
|
http: [port: 4002],
|
|
|
|
server: false
|
|
|
|
|
|
|
|
# Print only warnings and errors during test
|
|
|
|
config :logger, level: :warn
|