Upgrade to phoenix 1.5

This commit is contained in:
Adrian Kumpf
2020-04-23 12:51:15 +02:00
parent 0f228677ba
commit 155a135d51
55 changed files with 1580 additions and 1444 deletions
+3 -5
View File
@@ -6,11 +6,9 @@ config :teslamate,
config :teslamate, TeslaMateWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "Kz7vmP1gPYv/sogke6P3RP9uipMjOLhneQdbokZVx5gpLsNaN44TD20vtOWkMFIT",
render_errors: [view: TeslaMateWeb.ErrorView, accepts: ~w(html json)],
pubsub: [name: TeslaMate.PubSub, adapter: Phoenix.PubSub.PG2],
live_view: [
signing_salt: "6nSVV0NtBtBfA9Mjh+7XaZANjp9T73XH"
]
render_errors: [view: TeslaMateWeb.ErrorView, accepts: ~w(html json), layout: false],
pubsub_server: TeslaMate.PubSub,
live_view: [signing_salt: "6nSVV0NtBtBfA9Mjh+7XaZANjp9T73XH"]
config :logger, :console,
format: "$time $metadata[$level] $message\n",
+3 -3
View File
@@ -18,9 +18,8 @@ config :teslamate, TeslaMateWeb.Endpoint,
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{lib/teslamate_web/live/.*(ex)$},
~r"lib/test_web/(live|views)/.*(ex)$",
~r"lib/test_web/templates/.*(eex)$",
~r"grafana/dashboards/.*(json)$"
]
]
@@ -35,6 +34,7 @@ config :teslamate, TeslaMate.Repo,
password: "postgres",
database: "teslamate_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
config :teslamate, :mqtt,
+1 -1
View File
@@ -51,7 +51,7 @@ config :teslamate, TeslaMate.Repo,
timeout: System.get_env("DATABASE_TIMEOUT", "60000") |> String.to_integer()
config :teslamate, TeslaMateWeb.Endpoint,
http: [port: System.get_env("PORT", "4000")],
http: [port: System.get_env("PORT", "4000"), transport_options: [socket_opts: [:inet6]]],
url: [host: System.get_env("VIRTUAL_HOST", "localhost"), port: 80],
secret_key_base: System.get_env("SECRET_KEY_BASE", Util.random_string(64)),
live_view: [signing_salt: System.get_env("SIGNING_SALT", Util.random_string(8))],