force ssl

This commit is contained in:
Silas 2022-02-24 01:41:14 -05:00
parent 0847b0ff3d
commit 38a7ac597b
Signed by: silentsilas
GPG Key ID: 4199EFB7DAA34349
1 changed files with 2 additions and 3 deletions

View File

@ -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`.