Some checks failed
Build and Publish / build-release (push) Failing after 6s
52 lines
1.5 KiB
Elixir
52 lines
1.5 KiB
Elixir
import Config
|
|
|
|
config :workload_service, WorkloadServiceWeb.Endpoint,
|
|
force_ssl: [rewrite_on: [:x_forwarded_proto]],
|
|
exclude: [
|
|
hosts: ["localhost", "127.0.0.1"]
|
|
]
|
|
|
|
config :logger, level: :info
|
|
|
|
database_url =
|
|
System.get_env("DATABASE_URL") ||
|
|
raise """
|
|
environment variable DATABASE_URL is missing.
|
|
For example: ecto://USER:PASS@HOST/DATABASE
|
|
"""
|
|
|
|
config :workload_service, WorkloadService.Repo,
|
|
url: database_url,
|
|
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")
|
|
|
|
event_store_database_url =
|
|
System.get_env("EVENTSTORE_DATABASE_URL") ||
|
|
raise """
|
|
environment variable EVENTSTORE_DATABASE_URL is missing.
|
|
For example: ecto://USER:PASS@HOST/DATABASE
|
|
"""
|
|
|
|
config :workload_service, WorkloadService.EventStore,
|
|
serializer: Commanded.Serialization.JsonSerializer,
|
|
url: event_store_database_url,
|
|
pool_size: String.to_integer(System.get_env("EVENT_STORE_POOL_SIZE") || "10")
|
|
|
|
secret_key_base =
|
|
System.get_env("SECRET_KEY_BASE") ||
|
|
raise """
|
|
environment variable SECRET_KEY_BASE is missing.
|
|
You can generate one by calling: mix phx.gen.secret
|
|
"""
|
|
|
|
host = System.get_env("PHX_HOST") || "example.com"
|
|
|
|
config :workload_service, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
|
|
|
|
config :customer_service, CustomerServiceWeb.Endpoint,
|
|
url: [host: host, port: String.to_integer(System.get_env("PORT", "8080")), scheme: "http"],
|
|
http: [
|
|
ip: {0, 0, 0, 0, 0, 0, 0, 0},
|
|
port: String.to_integer(System.get_env("PORT", "8080"))
|
|
],
|
|
secret_key_base: secret_key_base
|