Something went wrong. Try again.
an rss/atom feed reader web application
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637import Config
# ## Using releases## If you use `mix release`, you need to explicitly enable the server# by passing the PHX_SERVER=true when you start it:## PHX_SERVER=true bin/feed_reader start## Alternatively, you can use `mix phx.gen.release` to generate a `bin/server`# script that automatically sets the env var above.if System.get_env("PHX_SERVER") do config :feed_reader, FeedReaderWeb.Endpoint, server: trueend
if config_env() == :prod do 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" port = String.to_integer(System.get_env("PORT") || "4000")
config :feed_reader, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
config :feed_reader, FeedReaderWeb.Endpoint, url: [host: host, port: 443, scheme: "https"], http: [ ip: {0, 0, 0, 0, 0, 0, 0, 0}, port: port ], secret_key_base: secret_key_baseend