ash_admin/config/config.exs

48 lines
1.3 KiB
Elixir
Raw Normal View History

2020-12-04 16:19:28 +13:00
use Mix.Config
2020-12-08 19:22:24 +13:00
pg_url = System.get_env("PG_URL") || "postgres:postgres@127.0.0.1"
pg_database = System.get_env("PG_DATABASE") || "ash_admin_dev"
Application.put_env(:ash_admin, Demo.Repo, url: "ecto://#{pg_url}/#{pg_database}")
2020-12-04 16:19:28 +13:00
config :phoenix, :json_library, Jason
2020-12-08 19:22:24 +13:00
config :ash_admin, ecto_repos: [Demo.Repo]
config :ash_admin,
2021-03-16 15:25:03 +13:00
ash_apis: [
2020-12-08 19:22:24 +13:00
Demo.Accounts.Api,
Demo.Tickets.Api
]
config :surface, :components, [
{Surface.Components.Form.ErrorTag, default_class: "invalid-feedback"}
]
2020-12-08 19:22:24 +13:00
config :ash_admin, DemoWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "Hu4qQN3iKzTV4fJxhorPQlA/osH9fAMtbtjVS58PFgfw3ja5Z18Q/WSNR9wP4OfW",
live_view: [signing_salt: "hMegieSe"],
http: [port: System.get_env("PORT") || 4000],
debug_errors: true,
check_origin: false,
pubsub_server: Demo.PubSub,
server: true,
watchers: [
node: [
"node_modules/webpack/bin/webpack.js",
"--mode",
System.get_env("NODE_ENV") || "production",
"--watch-stdin",
cd: "assets"
]
],
live_reload: [
iframe_attrs: [class: "hidden"],
2020-12-08 19:22:24 +13:00
patterns: [
~r"priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$",
~r"lib/ash_admin/(components|pages)/.*(ex)$"
]
]
config :logger, level: :debug
config :phoenix, :serve_endpoints, true