| 12345678910111213141516171819202122232425262728 |
- # In this file, we load production configuration and secrets
- # from environment variables. You can also hardcode secrets,
- # although such is generally not recommended and you have to
- # remember to add this file to your .gitignore.
- import Config
- host_ip =
- System.get_env("HOST_IP") ||
- raise "environment variable HOST_IP is missing."
- port =
- System.get_env("PORT") ||
- raise "environment variable PORT is missing."
- config :vaccins, VaccinsWeb.Endpoint,
- url: [host: host_ip, port: port],
- http: [
- port: String.to_integer(port),
- net: :inet,
- transport_options: [socket_opts: [:inet6]]
- ],
- check_origin: [
- "http://localhost:#{port}",
- "http://192.168.0.13:#{port}",
- "http://#{host_ip}:#{port}"
- ]
- config :vaccins, VaccinsWeb.Endpoint, server: true
|