From 52b431e79c2f4db78cc19d7af3dc703e18de4f0a Mon Sep 17 00:00:00 2001 From: Felipe LIncoln Date: Mon, 15 Feb 2021 17:44:05 -0300 Subject: [PATCH] add HOST env to endpoint --- config/prod.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/prod.exs b/config/prod.exs index 6790d7e..e6133d6 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -2,6 +2,6 @@ import Config config :web, Web.Endpoint, http: [port: {:system, "PORT"}], - url: [host: nil], + url: [scheme: "https", host: System.get_env("HOST"), port: 443], force_ssl: [rewrite_on: [:x_forwarded_proto], host: nil], cache_static_manifest: "priv/static/cache_manifest.json"