diff --git a/config/runtime.exs b/config/runtime.exs index 7ddc3ee..81a8cb2 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -48,7 +48,11 @@ if config_env() == :prod do You can generate one by calling: mix phx.gen.secret """ - host = System.get_env("PHX_HOST") || "example.com" + host = + System.get_env("PHX_HOST") || + "example.com" + |> IO.inspect() + port = String.to_integer(System.get_env("PORT") || "4000") config :something_erlang, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY") @@ -63,6 +67,7 @@ if config_env() == :prod do ip: {0, 0, 0, 0, 0, 0, 0, 0}, port: port ], + check_origin: [host], secret_key_base: secret_key_base # ## SSL Support