From 3838e0315a9ed9f900e3d8d532fde62522faf310 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 23 Oct 2019 16:24:24 +0200 Subject: [PATCH] Better config for inet6 in prod Taken from Phoenix template config Signed-off-by: Thomas Citharel --- config/prod.exs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/prod.exs b/config/prod.exs index 32c8f3d53..af0ae23bf 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -1,7 +1,10 @@ import Config config :mobilizon, MobilizonWeb.Endpoint, - http: [:inet6, port: System.get_env("MOBILIZON_INSTANCE_PORT") || 4000], + http: [ + port: System.get_env("MOBILIZON_INSTANCE_PORT") || 4000, + transport_options: [socket_opts: [:inet6]] + ], url: [ host: System.get_env("MOBILIZON_INSTANCE_HOST") || "mobilizon.me", port: 443,