better process tracking for admin dashboard
Some checks failed
CI/CD Pipeline / build (push) Failing after 5s
Some checks failed
CI/CD Pipeline / build (push) Failing after 5s
This commit is contained in:
@@ -1,17 +1,10 @@
|
||||
# This file is responsible for configuring your application
|
||||
# and its dependencies with the aid of the Config module.
|
||||
#
|
||||
# This configuration file is loaded before any dependency and
|
||||
# is restricted to this project.
|
||||
|
||||
# General application configuration
|
||||
# General config, overriden by other files in this directory.
|
||||
import Config
|
||||
|
||||
config :elixir_ai,
|
||||
ecto_repos: [ElixirAi.Repo],
|
||||
generators: [timestamp_type: :utc_datetime]
|
||||
|
||||
# Configures the endpoint
|
||||
config :elixir_ai, ElixirAiWeb.Endpoint,
|
||||
url: [host: "localhost"],
|
||||
adapter: Bandit.PhoenixAdapter,
|
||||
@@ -22,7 +15,6 @@ config :elixir_ai, ElixirAiWeb.Endpoint,
|
||||
pubsub_server: ElixirAi.PubSub,
|
||||
live_view: [signing_salt: "4UG1IVt+"]
|
||||
|
||||
# Configure esbuild (the version is required)
|
||||
config :esbuild,
|
||||
version: "0.17.11",
|
||||
elixir_ai: [
|
||||
@@ -32,7 +24,6 @@ config :esbuild,
|
||||
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
|
||||
]
|
||||
|
||||
# Configure tailwind (the version is required)
|
||||
config :tailwind,
|
||||
version: "4.0.9",
|
||||
elixir_ai: [
|
||||
@@ -43,17 +34,12 @@ config :tailwind,
|
||||
cd: Path.expand("../assets", __DIR__)
|
||||
]
|
||||
|
||||
# Configures Elixir's Logger
|
||||
config :logger, :console,
|
||||
format: "$time $metadata[$level] $message\n",
|
||||
metadata: [:request_id]
|
||||
|
||||
# Use Jason for JSON parsing in Phoenix
|
||||
config :phoenix, :json_library, Jason
|
||||
|
||||
# Lower the BEAM node-down detection window from the default 60s.
|
||||
# Nodes send ticks every (net_ticktime / 4)s; a node is declared down
|
||||
# after 4 missed ticks (net_ticktime total). 5s means detection in ≤5s.
|
||||
if System.get_env("RELEASE_MODE") do
|
||||
config :kernel, net_ticktime: 2
|
||||
end
|
||||
@@ -67,6 +53,4 @@ config :libcluster,
|
||||
]
|
||||
]
|
||||
|
||||
# Import environment specific config. This must remain at the bottom
|
||||
# of this file so it overrides the configuration defined above.
|
||||
import_config "#{config_env()}.exs"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user