mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
48 lines
1.1 KiB
Elixir
48 lines
1.1 KiB
Elixir
import Config
|
|
|
|
config :teslamate, TeslaMateWeb.Endpoint,
|
|
http: [port: 4000],
|
|
debug_errors: true,
|
|
code_reloader: true,
|
|
check_origin: false,
|
|
watchers: [
|
|
node: [
|
|
"node_modules/webpack/bin/webpack.js",
|
|
"--mode",
|
|
"development",
|
|
"--watch-stdin",
|
|
cd: Path.expand("../assets", __DIR__)
|
|
]
|
|
],
|
|
live_reload: [
|
|
patterns: [
|
|
~r"priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$",
|
|
~r"priv/gettext/.*(po)$",
|
|
~r"lib/teslamate_web/(live|views)/.*(ex)$",
|
|
~r"lib/teslamate_web/templates/.*(eex)$",
|
|
~r"grafana/dashboards/.*(json)$"
|
|
]
|
|
]
|
|
|
|
config :logger, :console, format: "$metadata[$level] $message\n"
|
|
|
|
config :phoenix, :stacktrace_depth, 20
|
|
config :phoenix, :plug_init_mode, :runtime
|
|
|
|
config :teslamate, TeslaMate.Repo,
|
|
username: "postgres",
|
|
password: "postgres",
|
|
database: "teslamate_dev",
|
|
hostname: "localhost",
|
|
show_sensitive_data_on_connection_error: true,
|
|
pool_size: 10
|
|
|
|
config :teslamate, :mqtt,
|
|
host: "localhost",
|
|
username: "dev",
|
|
password: "dev"
|
|
|
|
config :teslamate, disable_token_refresh: true
|
|
|
|
config :teslamate, :srtm_cache, "./.srtm_cache"
|