diff --git a/config/prod.exs b/config/prod.exs index d68ea52817..0b2f4f0c67 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -2,3 +2,11 @@ import Config config :dotcom, :cache, Dotcom.Cache.Multilevel config :dotcom, :trip_plan_feedback_cache, Dotcom.Cache.TripPlanFeedback.Cache + +# configured separately so that we can have the health check not require +# SSL +config :dotcom, :secure_pipeline, + force_ssl: [ + host: nil, + rewrite_on: [:x_forwarded_proto] + ] diff --git a/config/runtime.exs b/config/runtime.exs index 7531f901fe..769eecf357 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -183,16 +183,6 @@ if config_env() == :prod do port: System.get_env("STATIC_PORT") ] - unless System.get_env("PORT") do - # configured separately so that we can have the health check not require - # SSL - config :dotcom, :secure_pipeline, - force_ssl: [ - host: nil, - rewrite_on: [:x_forwarded_proto] - ] - end - config :dotcom, support_ticket_to_email: System.get_env("SUPPORT_TICKET_TO_EMAIL"), support_ticket_from_email: System.get_env("SUPPORT_TICKET_FROM_EMAIL"),