better process tracking for admin dashboard
Some checks failed
CI/CD Pipeline / build (push) Failing after 5s

This commit is contained in:
2026-03-20 12:07:16 -06:00
parent b2f53942a2
commit 6138d71d29
21 changed files with 910 additions and 106 deletions

View File

@@ -4,9 +4,9 @@ import Dotenvy
source!([".env", System.get_env()])
config :elixir_ai,
ai_endpoint: env!("AI_RESPONSES_ENDPOINT", :string!),
ai_token: env!("AI_TOKEN", :string!),
ai_model: env!("AI_MODEL", :string!)
ai_endpoint: System.get_env("AI_RESPONSES_ENDPOINT"),
ai_token: System.get_env("AI_TOKEN"),
ai_model: System.get_env("AI_MODEL")
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
@@ -72,7 +72,7 @@ if config_env() == :prod do
]
end
host = System.get_env("PHX_HOST") || "example.com"
host = System.get_env("PHX_HOST") || raise "environment variable PHX_HOST is missing."
port = String.to_integer(System.get_env("PORT") || "4000")
config :elixir_ai, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
@@ -88,36 +88,4 @@ if config_env() == :prod do
port: port
],
secret_key_base: secret_key_base
# ## SSL Support
#
# To get SSL working, you will need to add the `https` key
# to your endpoint configuration:
#
# config :elixir_ai, ElixirAiWeb.Endpoint,
# https: [
# ...,
# port: 443,
# cipher_suite: :strong,
# keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"),
# certfile: System.get_env("SOME_APP_SSL_CERT_PATH")
# ]
#
# The `cipher_suite` is set to `:strong` to support only the
# latest and more secure SSL ciphers. This means old browsers
# and clients may not be supported. You can set it to
# `:compatible` for wider support.
#
# `:keyfile` and `:certfile` expect an absolute path to the key
# and cert in disk or a relative path inside priv, for example
# "priv/ssl/server.key". For all supported SSL configuration
# options, see https://hexdocs.pm/plug/Plug.SSL.html#configure/1
#
# We also recommend setting `force_ssl` in your config/prod.exs,
# ensuring no data is ever sent via http, always redirecting to https:
#
# config :elixir_ai, ElixirAiWeb.Endpoint,
# force_ssl: [hsts: true]
#
# Check `Plug.SSL` for all available options in `force_ssl`.
end