- Move LiveDashboard to /admin/dashboard behind session auth (all envs) - Add ErrorTracker at /admin/errors for auto-captured exceptions - Add Oban job and LiveView metrics to telemetry module - Add logger_json for structured JSON logs in production - Enable os_mon for CPU/disk/memory in LiveDashboard OS Data tab - Extend logger metadata with oban_worker and oban_queue fields Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
903 B
Elixir
25 lines
903 B
Elixir
import Config
|
|
|
|
# Note we also include the path to a cache manifest
|
|
# containing the digested version of static files. This
|
|
# manifest is generated by the `mix assets.deploy` task,
|
|
# which you should run after static files are built and
|
|
# before starting your production server.
|
|
config :simpleshop_theme, SimpleshopThemeWeb.Endpoint,
|
|
cache_static_manifest: "priv/static/cache_manifest.json"
|
|
|
|
# Configures Swoosh API Client
|
|
config :swoosh, api_client: Swoosh.ApiClient.Req
|
|
|
|
# Disable Swoosh Local Memory Storage
|
|
config :swoosh, local: false
|
|
|
|
# Do not print debug messages in production
|
|
config :logger, level: :info
|
|
|
|
# Structured JSON logs for production (machine-parseable by fly logs, journalctl, Loki, etc.)
|
|
config :logger, :default_handler, formatter: {LoggerJSON.Formatters.Basic, []}
|
|
|
|
# Runtime production configuration, including reading
|
|
# of environment variables, is done on config/runtime.exs.
|