So, what I have:
- Successfuly deployed elixir server on AWS ECS (I can see logs, attached)
- Runtime config as
host = System.get_env("PHX_HOST") || "example.com"
port = String.to_integer(System.get_env("PORT") || "4000")
config :platform, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
config :platform, PlatformWeb.Endpoint,
url: [host: host, port: 443, scheme: "https"],
http: [
ip: {0, 0, 0, 0},
port: port
],
secret_key_base: secret_key_base
When I ssh to another machine in the same private network, I cannot reach my phoenix app via curl
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://10.0.2.173:4000
curl: (28) Failed to connect to 10.0.2.173 port 4000: Connection timed out
It basically hangs for 1 minute and then connection timeout.
I'm pretty sure something is wrong here, maybe with ports, but would be happy to hear some ideas.