| 123456789101112131415161718192021222324252627 |
- import Config
- alias Config.Helper
- # config/runtime.exs is executed for all environments, including
- # during releases. It is executed after compilation and before the
- # system starts, so it typically used load production configuration
- # and secrets from environment variables or elsewhere. Do not define
- # any compile-time configuration in here, as it won't be applied.
- # The block below contains prod specific runtime configuration.
- if config_env() == :prod do
- env =
- Helper.load_all([
- "SECRET_KEY_BASE",
- "PORT",
- "HOST"
- ])
- config :vaccins, VaccinsWeb.Endpoint,
- secret_key_base: env.secret_key_base,
- url: [host: env.host, port: env.port],
- http: [
- port: String.to_integer(env.port),
- net: :inet,
- transport_options: [socket_opts: [:inet6]]
- ],
- server: true
- end
|