mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-20 13:23:38 +12:00
f4b603e9d4
improvement: add authorization to accounts
35 lines
1.1 KiB
Elixir
35 lines
1.1 KiB
Elixir
import Config
|
|
|
|
# Configure your database
|
|
#
|
|
# The MIX_TEST_PARTITION environment variable can be used
|
|
# to provide built-in test partitioning in CI environment.
|
|
# Run `mix help test` for more information.
|
|
config :ash_hq, AshHq.Repo,
|
|
username: "postgres",
|
|
password: "postgres",
|
|
hostname: "localhost",
|
|
database: "ash_hq_test#{System.get_env("MIX_TEST_PARTITION")}",
|
|
pool: Ecto.Adapters.SQL.Sandbox,
|
|
pool_size: 10
|
|
|
|
# We don't run a server during test. If one is required,
|
|
# you can enable the server option below.
|
|
config :ash_hq, AshHqWeb.Endpoint,
|
|
http: [ip: {127, 0, 0, 1}, port: 4002],
|
|
secret_key_base: "766JP3UO+dTbVfydE4RafFKbfUoudccDz1zS7x1N75WSiEJTq6dDR4r04+McH41m",
|
|
server: false
|
|
|
|
# In test we don't send emails.
|
|
config :ash_hq, AshHq.Mailer, adapter: Swoosh.Adapters.Test
|
|
|
|
# Print only warnings and errors during test
|
|
config :logger, level: :warn
|
|
|
|
# Initialize plugs at runtime for faster test compilation
|
|
config :phoenix, :plug_init_mode, :runtime
|
|
|
|
config :ash_hq, AshHq.Mailer, adapter: Swoosh.Adapters.Local
|
|
|
|
# config :plug_content_security_policy,
|
|
# report_only: true
|