From 2b106447987ea5b2854f9131c2402e855f50a9e4 Mon Sep 17 00:00:00 2001 From: danilo silva Date: Fri, 22 May 2020 20:29:59 +0000 Subject: [PATCH] chore: update prod configuration to run on the right port --- config/prod.exs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config/prod.exs b/config/prod.exs index a0bb52b..18457ba 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -10,8 +10,14 @@ use Mix.Config # which you should run after static files are built and # before starting your production server. config :podcast_feed, PodcastFeedWeb.Endpoint, - url: [host: "example.com", port: 80], - cache_static_manifest: "priv/static/cache_manifest.json" + load_from_system_env: true, + url: [scheme: "https", host: "podcast.herokuapp.com", port: 443], + http: [port: {:system, "PORT"}], + cache_static_manifest: "priv/static/cache_manifest.json", + server: true, + root: ".", + version: Application.spec(:phoenix_distillery, :vsn), + force_ssl: [rewrite_on: [:x_forwarded_proto]] # Do not print debug messages in production config :logger, level: :info