From 38a7ac597bab18e494385b41df8ebb0f89ee3f0c Mon Sep 17 00:00:00 2001 From: Silas Date: Thu, 24 Feb 2022 01:41:14 -0500 Subject: [PATCH] force ssl --- config/prod.exs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/prod.exs b/config/prod.exs index 332871d..9d16294 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -10,7 +10,7 @@ use Mix.Config # which you should run after static files are built and # before starting your production server. config :entendu, EntenduWeb.Endpoint, - url: [host: "example.com", port: 80], + url: [host: "intended.link", port: 80], cache_static_manifest: "priv/static/cache_manifest.json" # Do not print debug messages in production @@ -45,8 +45,7 @@ config :logger, level: :info # We also recommend setting `force_ssl` in your endpoint, ensuring # no data is ever sent via http, always redirecting to https: # -# config :entendu, EntenduWeb.Endpoint, -# force_ssl: [hsts: true] +config :my_app, EntenduWeb.Endpoint, force_ssl: [rewrite_on: [:x_forwarded_proto]] # # Check `Plug.SSL` for all available options in `force_ssl`.