diff --git a/config/dev.exs b/config/dev.exs index 9476c66fdd..7c7baeed32 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -2,7 +2,7 @@ import Config port = 4000 config :changelog, ChangelogWeb.Endpoint, - http: [port: port], + http: [port: port, ip: {0, 0, 0, 0, 0, 0, 0, 0}], url: [host: System.get_env("HOST", "localhost")], check_origin: false, static_url: [path: "/static"], diff --git a/config/prod.exs b/config/prod.exs index 4ee4092196..a861b230bc 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -3,7 +3,7 @@ import Config static_url_host = System.get_env("STATIC_URL_HOST", "cdn.changelog.com") config :changelog, ChangelogWeb.Endpoint, - http: [port: System.get_env("HTTP_PORT", "4000")], + http: [port: System.get_env("HTTP_PORT", "4000"), ip: {0, 0, 0, 0, 0, 0, 0, 0}], url: [ scheme: System.get_env("URL_SCHEME", "https"), host: System.get_env("URL_HOST", "changelog.com"), diff --git a/config/test.exs b/config/test.exs index 796c18daab..ffe48de93b 100644 --- a/config/test.exs +++ b/config/test.exs @@ -3,7 +3,7 @@ import Config # We don't run a server during test. If one is required, # you can enable the server option below. config :changelog, ChangelogWeb.Endpoint, - http: [port: 4001], + http: [port: 4001, ip: {0, 0, 0, 0, 0, 0, 0, 0}], server: false # Print only warnings and errors during test