Files
archived-teslamate/config/config.exs
Adrian Kumpf 0d6e288c70 Encrypt API tokens (#2360)
Store API tokens encrypted in the database.

During the database migration a randomly generated key will be used encrypt the tokens if no ENCRYPTION_KEY environment variable was provided.

If the application is started without the presence of an ENCRYPTION_KEY (or if the key failed to decrypt the existing tokens), the UI will display a warning with further instructions.
2022-02-18 17:03:13 +01:00

30 lines
784 B
Elixir

import Config
config :teslamate,
ecto_repos: [TeslaMate.Repo]
config :teslamate, TeslaMateWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "Kz7vmP1gPYv/sogke6P3RP9uipMjOLhneQdbokZVx5gpLsNaN44TD20vtOWkMFIT",
render_errors: [view: TeslaMateWeb.ErrorView, accepts: ~w(html json), layout: false],
pubsub_server: TeslaMate.PubSub,
live_view: [signing_salt: "6nSVV0NtBtBfA9Mjh+7XaZANjp9T73XH"]
config :teslamate,
cloak_repo: TeslaMate.Repo,
cloak_schemas: [
TeslaMate.Auth.Tokens
]
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:car_id]
config :phoenix, :json_library, Jason
config :gettext, :default_locale, "en"
config :elixir, :time_zone_database, Tzdata.TimeZoneDatabase
import_config "#{config_env()}.exs"