Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
force ssl on prod
  • Loading branch information
dylanjha committed Aug 12, 2019
1 parent e24e630 commit 2b81e4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/prod.exs
Expand Up @@ -11,7 +11,8 @@ use Mix.Config
# before starting your production server.
config :snitch, SnitchWeb.Endpoint,
url: [host: System.get_env("HOST_NAME"), port: 80],
cache_static_manifest: "priv/static/cache_manifest.json"
cache_static_manifest: "priv/static/cache_manifest.json",
force_ssl: [rewrite_on: [:x_forwarded_proto]]

# Do not print debug messages in production
config :logger, level: :info
Expand Down

0 comments on commit 2b81e4b

Please sign in to comment.