fp-lab4/config/runtime.exs
2026-01-13 18:26:26 +03:00

12 lines
492 B
Elixir

import Config
if config_env() == :prod do
config :exdns,
auth_token: System.get_env("EXDNS_AUTH_TOKEN", "change-me"),
http_port: String.to_integer(System.get_env("EXDNS_HTTP_PORT", "8080")),
dns_port: String.to_integer(System.get_env("EXDNS_DNS_PORT", "5354")),
dns_tcp_port: String.to_integer(System.get_env("EXDNS_DNS_TCP_PORT", "5354")),
zones_dir: System.get_env("EXDNS_ZONES_DIR", "zones"),
cookie_seed: System.get_env("EXDNS_COOKIE_SEED", "exdns-cookie")
end