22 lines
649 B
Elixir
22 lines
649 B
Elixir
import Config
|
|
|
|
# Skip env-based overrides in test mode so that test.exs values (port: 0,
|
|
# telepathy: disabled) are not stomped by shell env vars from the live service.
|
|
if config_env() != :test do
|
|
if port = System.get_env("SYMBIONT_PORT") do
|
|
config :symbiont, port: String.to_integer(port)
|
|
end
|
|
|
|
if data_dir = System.get_env("SYMBIONT_DATA_DIR") do
|
|
config :symbiont, data_dir: data_dir
|
|
end
|
|
|
|
if System.get_env("TELEPATHY_ENABLED") == "false" do
|
|
config :symbiont, :telepathy, enabled: false
|
|
end
|
|
|
|
if smtp_port = System.get_env("SMTP_PORT") do
|
|
config :symbiont, :telepathy, smtp_port: String.to_integer(smtp_port)
|
|
end
|
|
end
|